| Class | RPM::File |
| In: |
lib/rpm/file.rb
|
| Parent: | Object |
| attr | [RW] | |
| group | [RW] | @return [String] Group that owns the file. Nil may be returned. |
| link_to | [RW] |
@return [String] Path to the destination if the file is a symbolic link
@note
This path is sometimes relative. To convert an absolute path from relative path: File.expand_path (file.link_to, File.dirname (file.path)) |
| md5sum | [RW] | @return [String] md5sum as string |
| mode | [RW] | @return [Number] Device type of the file |
| mtime | [RW] | @return [Time] File modification time. |
| owner | [RW] | @return [String] File owner. Nil may be returned. |
| path | [RW] | @return [String] file path |
| rdev | [RW] | |
| size | [RW] | @return [Number] File size |
| state | [RW] |
@return [Boolean] True if the file is marked as do not use @deprecated RPMFILE_DONOTUSE was removed in recent versions of RPM.
@raise NotImplementedError @deprecated RPMFILE_EXCLUDE was removed in recent versions of RPM.
@return [Boolean] True if the file is marked as ghost
This flag indicates the file should not be included in the package. It can be used to name the needed attributes for a file that the program, when installed,
will create.
For example, you may want to ensure that a program’s log file has certain attributes.
@return [Boolean] True if the file is marked that can be missing on disk
This modifier is used for files or links that are created during the %post scripts but will need to be removed if the package is removed
@return [Boolean] True if the file is marked as configuration not to be replaced
This flag is used to protect local modifications. If used, the file will not overwrite an existing file that has been modified. If the file has not been modified on disk, the rpm command will overwrite the file. But,
if the file has been modified on disk, the rpm command will copy the new file with an extra file-name extension of .rpmnew.