How can I check what was installed for an apt package?

Solution 1:

The following command will list all files installed by the package autojump:

dpkg -L autojump

It is a dpkg command because dpkg is actually responsible for installing packages, apt just a frontend that runs dpkg.

For completeness, there is also the reverse command:

dpkg -S file

This will give you all packages which contain something named file (this can also be a single part of a path).

Solution 2:

When you just installed a package with apt, the downloaded .deb file is still in /var/cache/apt/archives/

You can open the file with file-roller and you'll see which files and folders are added to the filesystem. For the executable it's usually in usr/bin/ folder.

Solution 3:

install apt-file

sudo apt-get update && sudo apt-get install apt-file -y

use it this way

apt-file show packageName