Listing files contained in an installed package

GNU/Linux
To know the files contained in an installed package, run the following command:

Debian/Ubuntu and derivatives

$ dpkg -L cmus
/.
/ usr
/ usr/lib
/usr/lib/Cmus
/usr/lib/Cmus/op
/usr/lib/cmus/op/pulse.so
/usr/lib/cmus/op/ao.so
/usr/lib/cmus/op/oss.so
/usr/lib/cmus/op/alsa.so
...

CentOS/Fedora/RHEL

$ rpm - ql grep
/bin/egrep
/bin/fgrep
/bin/grep
/usr/share/doc/grep-2.5.1
/usr/share/doc/grep-2.5.1/ABOUT-NLS
/usr/share/doc/grep-2.5.1/AUTHORS
/usr/share/doc/grep-2.5.1/ChangeLog
/usr/share/doc/grep-2.5.1/NEWS
/usr/share/doc/grep-2.5.1/READ
...

Recommended reading

-man dpkg
-man rpm

The tutorials here on LibreByte are provided under a free software licence. if you like my work you should consider:
Buy a Hosting/VPS or Dedicated Server at MCKHost

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.