This document is a WORK IN PROGRESS.
This is just a quick personal cheat sheet: treat its contents with caution!
APT tools¶
APT, is a package management system used on most Debian based distros.
It should not be mistaken with apt
, an APT tool which provides a high-level command line
interface for the package management system. It is intended as an end user interface and enables
some options better suited for interactive usage by default compared to more specialized tools like
apt-get
and apt-cache
(which are both considered as lower-level and more backwards compatible,
so better suited for scripting).
Do not mistake apt
with Aptitude
, which not only has a command line interface but also a
ncurses
interface. Aptitude
is considered a higher-level package manager that abstract more
low-level details.
Reference(s)
- https://wiki.archlinux.org/index.php/Pacman/Rosetta
- https://www.tecmint.com/linux-package-management/
- https://www.tecmint.com/difference-between-apt-and-aptitude/
- https://www.tecmint.com/useful-basic-commands-of-apt-get-and-apt-cache-for-package-management
- https://help.ubuntu.com/kubuntu/desktopguide/C/apt-get.html
- https://help.ubuntu.com/community/AptitudeSurvivalGuide
- http://manpages.ubuntu.com/manpages/xenial/man8/apt.8.html
- https://help.ubuntu.com/community/AptGet/Howto
Table of content¶
apt
¶
-
Check whether
packagename
is installed: -
Full system update/upgrade:
-
Remove a package
-
List all installed packages:
-
List manually installed packages (not their dependencies):
Search package files¶
Install apt-file
utility:
Update it:
Search for a file
Install deb package¶
Reference(s)
If you get dependencies errors when installing the deb package, you might want to force the installation anyway:
Uninstall package¶
apt-get
¶
TODO
apt-cache
¶
TODO
Aptitude¶
TODO
If this cheat sheet has been useful to you, then please consider leaving a star here.