RPM

31 Mar

rpm –query –filesbypkg
rpm –query –whatprovides

1) To find out which package an installed file belongs to:
rpm -qf /some/file
To find out what files an installed package contains:
rpm -ql package
To find out which files an rpm contains:
rpm -qlp file.rpm

2) To extract the files from an rpm:
rpm2cpio file.rpm | cpio -id

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: