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 .... .. ...
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop













{ 5 comments… read them below or add one }
dear Sir,
I have some problems while installing the oracle on linux Enterprse 5
I hope you can help me with a list of needed RPM files to pass this probmes
regards,
Husam
Thanks Vivek, great writeup, saved me from staring at the man page.
If you want explicit output (owner, permision, etc) you can use:
> rpm2cpio | cpio -tv
Good one ‘ala2200′
Thanks Vivek, great writeup, saved me from staring at the man page.