Linux in a Nutshell, Third Edition
by Ellen Siever, Stephen Spainhour, Jessica P. Hekman, Stephen Figgins
Name
apt-get
Synopsis
apt-get [options] command [package...]
Description
A command-line tool for handling packages. Will eventually be a backend to APT.
Commands
- autoclean
Like clean, but remove only package files that can no longer be downloaded.
- clean
Clear the local repository of retrieved package files.
- check
Update the package cache and check for broken packages.
- dist-upgrade
Like upgrade but also handle dependencies intelligently.
- dselect-upgrade
Used together with dselect. Track the changes made by dselect to the Status field of available packages and take actions necessary to realize that status.
- install package...
Install one or more packages. Specify the package name, not the full filename. Other required packages also are retrieved and installed. With a hyphen appended to the package name, the package is removed if it is already installed.
- remove package...
Remove one or more packages. Specify the package name, not the full filename. With a plus sign appended to the name, the package is installed.
- source package...
Find source packages and download them into the current directory. If specified with --compile, the source packages are compiled into binary packages. With --download-only, the source packages are not unpacked.
- update
Resynchronize the package overview files from their sources. Must be done before an upgrade or dist-upgrade.
- upgrade
Install the latest versions of all packages currently installed. Run update first.
Options
Options can be specified on the command line ...
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