Class | RPM::File |
In: |
lib/arr-pm/namespace.rb
lib/arr-pm/file.rb lib/arr-pm/namespace.rb lib/arr-pm/file.rb |
Parent: | Object |
Much of the code here is derived from knowledge gained by reading the rpm source code, but mostly it started making more sense after reading this site: www.rpm.org/max-rpm/s1-rpm-file-format-rpm-file-format.html
FLAG_LESS | = | (1 << 1) | ||
FLAG_GREATER | = | (1 << 2) | ||
FLAG_EQUAL | = | (1 << 3) | ||
FLAG_CONFIG_FILE | = | (1 << 0) | from rpm/rpmfi.h | |
FLAG_LESS | = | (1 << 1) | ||
FLAG_GREATER | = | (1 << 2) | ||
FLAG_EQUAL | = | (1 << 3) | ||
FLAG_CONFIG_FILE | = | (1 << 0) | from rpm/rpmfi.h |
file | [R] | |
file | [R] |
Extract this RPM to a target directory.
This should have roughly the same effect as:
% rpm2cpio blah.rpm | (cd {target}; cpio -i --make-directories)
Extract this RPM to a target directory.
This should have roughly the same effect as:
% rpm2cpio blah.rpm | (cd {target}; cpio -i --make-directories)
Get all relations of a given type to this package.
Examples:
rpm.relation(:require) rpm.relation(:conflict) rpm.relation(:provide)
In the return array-of-arrays, the elements are: [ name (string), operator (string), version (string) ]
operator will be ">=", ">", "=", "<", or "<="
@return Array of [name, operator, version]
Get all relations of a given type to this package.
Examples:
rpm.relation(:require) rpm.relation(:conflict) rpm.relation(:provide)
In the return array-of-arrays, the elements are: [ name (string), operator (string), version (string) ]
operator will be ">=", ">", "=", "<", or "<="
@return Array of [name, operator, version]