Tips and tricks on package management for APT based distributions such as Debian.
To install package foobar:
apt-get install foobar
When installing a package you may be informed of:
- Extra packages are dependencies of what you are installing and will also be installed.
- Recommended packages are needed or recommended for normal use of what you are installing, but the package will work without it. Some apt frontends install these by default.
- Suggested packages are things the packager thought you might find useful in conjunction with what you are installing.
To uninstall package foobar:
apt-get remove foobar
To automatically removed orphaned packages — that is, packages that were installed as dependencies of something that has since been removed: