RE: rpm --setperms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux