Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fieldse/693bc38f1af99c689849ae632abb5722 to your computer and use it in GitHub Desktop.
Save fieldse/693bc38f1af99c689849ae632abb5722 to your computer and use it in GitHub Desktop.

To list files that will be installed by a debian package (.deb) which is not currently installed on your system

# Ubuntu 15.04+ 
apt download <packagename>

# Earlier versions of Ubuntu
apt-get --download <package name>

# Inspect package with dpkg
dpkg -c <package_name_long_format.deb>

## Note: tab completion is your friend for getting the full package name. 

Example:

$ apt download getmail4 
Get:1 http://us.archive.ubuntu.com/ubuntu zesty/universe amd64 getmail4 all 4.53.0-1 [150 kB]
Fetched 150 kB in 2s (65.7 kB/s) 

$ dpkg -c getmail4_4.53.0-1_all.deb 
drwxr-xr-x root/root         0 2017-01-23 23:15 ./
drwxr-xr-x root/root         0 2017-01-23 23:15 ./usr/
drwxr-xr-x root/root         0 2017-01-23 23:15 ./usr/bin/
-rwxr-xr-x root/root     39670 2017-01-23 23:15 ./usr/bin/getmail
-rwxr-xr-x root/root      8613 2017-01-23 23:15 ./usr/bin/getmail_fetch
[... snip ...]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment