Quantcast
Channel: How to list files of a Debian package without install - Super User
Viewing all articles
Browse latest Browse all 10

Answer by alfplayer for How to list files of a Debian package without install

$
0
0

dpkg -c (or --contents) lists the contents of a .deb package file (It is a front-end to dpkg-deb.)

dpkg -c package_file.deb

To work directly with package names rather than package files, you can use apt-file. (You may need to install the apt-file package first.)

sudo apt-file update        apt-file list package_name

As stated in the first comment, apt-file lists contents for packages in your already-configured Apt repositories. It is irrelevant whether any particular package is or is not installed.


Viewing all articles
Browse latest Browse all 10

Trending Articles