Name
apt-get
Synopsis
apt-get [options]command[package...]
A command-line tool for handling packages. Also serves as a backend to other APT tools such as dselect, synaptic, and aptitude (all described later in this section).
Commands
- autoclean
Like clean, but remove only package files that can no longer be downloaded. Set the configuration option APT::Clean-Installed to off to prevent installed packages from being erased.
- autoremove
Remove packages that were automatically installed to satisfy a dependency and are no longer needed.
- build-dep
Install or remove packages to satisfy the build dependencies for a source package.
- clean
Clear the local repository of retrieved package files. Useful for freeing up disk space.
- check
Update the package cache and check for broken dependencies.
- dist-upgrade
Like upgrade, but also handle changing dependencies for new package versions intelligently. See the -f option for more information.
- dselect-upgrade
Used with dselect. Track the changes made by dselect to the Status field of available packages and take actions necessary to realize that status.
- install packages
Install one or more packages. Specify the package name, not the full filename. Other required packages are also retrieved and installed. With a hyphen appended to the package name, the package is removed if it is already installed. Select a version to install by appending an equals sign and the version. Select a distribution to install by appending a slash and the distribution.
- purge packages
Like remove ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access