I would suggest to use dpkg
from the command line (shell). The good thing about it is that it is already installed on your system, because apt-get is just an extension built around dpkg. apt-get handles checking for available packages, checking for updates, downloading the packages, but dpkg is the command that actually handles the package installs, removes, etc.
In order to get a list of all installed packages, you can run dpkg -l
. And in order to list all files in a given package, you run dpkg -L <pkg_name>
, for example:
dpkg -L zerofree
/.
/usr
/usr/share
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/zerofree.8.gz
/usr/share/doc
/usr/share/doc/zerofree
/usr/share/doc/zerofree/copyright
/usr/share/doc/zerofree/changelog.Debian.gz
/usr/sbin
As already explained by @stochastic, the sources of packages on your system are the same, regardless of whether you use the GUI or command line tools. The actual configuration files are in /etc/apt/sources.list
and /etc/apt/sources.list.d/*
.
Note that dpkg does not understand online repositories, it can work with packages that are already installed on the system or packages (.deb) that you have downloaded manually.