What files are in a RPM package?
Q. How do I find out what files are in RPM package called gnupg?
A. You can use rpm command itself to list the files inside a RPM package. rpm is a powerful Package Manager, which can be used to build, install, query, verify, update, and erase individual software packages. A package consists of an archive of files and meta-data used to install and erase the archive files.
Use following syntax to list the files for already INSTALLED package:
rpm -ql package-name
Use following syntax to list the files for RPM package:
rpm -qlp package.rpm
Type the following command to list the files for gnupg rpm package:
$ rpm -qlp rpm -qlp gnupg-1.4.5-1.i386.rpm
Output:
/usr/bin/gpg /usr/bin/gpgsplit /usr/bin/gpgv /usr/bin/lspgpot /usr/lib64/gnupg /usr/lib64/gnupg/gpgkeys_ldap /usr/lib64/gnupg/gpgkeys_mailto /usr/share/doc/gnupg-1.2.6 /usr/share/doc/gnupg-1.2.6/AUTHORS /usr/share/doc/gnupg-1.2.6/BUGS /usr/share/doc/gnupg-1.2.6/COPYING /usr/share/doc/gnupg-1.2.6/ChangeLog /usr/share/doc/gnupg-1.2.6/DETAILS /usr/share/doc/gnupg-1.2.6/HACKING /usr/share/doc/gnupg-1.2.6/INSTALL /usr/share/doc/gnupg-1.2.6/NEWS .... .. ...
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- Solaris find out a package which a file belongs to
- CentOS / Red Hat Linux Find Out Latest Available Updated Package or Kernel Version
- Find out if package is installed in Linux
- How do I find what dependencies a rpm file has?
- Unzip files in particular directory or folder under Linux or UNIX
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!



Recent Comments
Today ~ 32 Comments
Yesterday ~ 1 Comment
Yesterday ~ 3 Comments
Yesterday ~ 2 Comments
Yesterday ~ 3 Comments