rpm --setperms

Brad Smith brads at redhat.com
Thu May 27 14:25:58 UTC 2004


As other replies have pointed out, the problem is that /dev/hdd is a
file, not a package. The way rpm works for just about any function other
than installing is this:

* If you just give it a name, like rpm --setperms foo, then foo is
assumed to be an INSTALLED PACKAGE.

* If you use the -f argument, like rpm --setperms -f foo, then foo is
assumed to be a FILE and the --setperms action will be performed on
whatever package that file is from (and on ALL files in that package,
not just foo). This is what you want.

* While not relevant to setperms, there is also a -p argument that
denotes an rpm package file. So, for example, rpm -qi foo.rpm will fail
unless you have an application called "foo.rpm", not just "foo",
installed. To query the actual package you would use rpm -qi -p foo.rpm.

Make sense?
--Brad





More information about the fedora-list mailing list