Installation Chain
apt
, apt-get
, apt-cache
talks to the repository servers, download .deb
, calculate dependency tree, the hand the final files to dpkg
for the actual install. E.g.,
1
sudo apt install curl
- apt finds curl & its deps
- downloads .debs
- dpkg -i each_downloaded.deb
dpkg
dpkg
, the debian package manager, works directly with .deb
files. It maintains a database of Debian packages.
dpkg -i <FILE>.deb
: install.deb
filedpkg -r foo
: remove (remove the binaries but keeps config files)dpkg -P foo
: purge (remove the binaries + configs)dpkg -S <Path>
: search forpath
of the file.dpkg -S /usr/bin/python3 → python3.8: /usr/bin/python3
dpkg -l
: Shows version, description of all deb packages