Installing a single file from an RPM into a system running SELinux

Jonathan Ryshpan jonrysh at pacbell.net
Sat May 11 22:07:04 UTC 2013


On Sat, 2013-05-11 at 14:16 -0700, Joe Zeff wrote:
> On 05/11/2013 01:40 PM, Jonathan Ryshpan wrote:
> > I need to install a single file from an RPM, namely
> >
> >   * RPM gnome-keyring-3.6.3-1.fc18.i686
> >   * File: /usr/lib/pkcs11/gnome-keyring-pkcs11.so
> 
> The first thing you need to do is RTFM:
> 
> rpm -i gnome-keyring-3.6.3-1.fc18.i686 -f gnome-keyring-pkcs11.so
> 
> should do the trick.  (Please note that I haven't actually done this, 
> but man rpm tells me that it will work and I presume that whoever wrote 
> that knew what they were doing.)

If only.  The -f option applies only to queries, eg.
        $ rpm -qf /usr/lib64/pkcs11/gnome-keyring-pkcs11.so
        gnome-keyring-3.6.3-1.fc18.x86_64
to discover which rpm provides the specified file.  

Just to make sure, I tried the following, adding a ".rpm" in case of a
typo.
        $ rpm -i gnome-keyring-3.6.3-1.fc18.i686 -f gnome-keyring-pkcs11.so
        error: gnome-keyring-3.6.3-1.fc18.i686: not an rpm package (or package manifest): 
        error: open of gnome-keyring-pkcs11.so failed: No such file or directory
        $ rpm -i gnome-keyring-3.6.3-1.fc18.i686.rpm -f gnome-keyring-pkcs11.so
        error: open of gnome-keyring-pkcs11.so failed: No such file or directory

Thanks - jon





More information about the users mailing list