1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/apt-get.md
MIfoodie 649882dc99
apt-get: add recommendation for apt (#12394)
* apt-get: add recommendation for apt

---------

Co-authored-by: Fazle Arefin <fazlearefin@users.noreply.github.com>
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
2024-02-27 19:58:01 +05:30

38 lines
1.1 KiB
Markdown

# apt-get
> Debian and Ubuntu package management utility.
> Search for packages using `apt-cache`.
> It is recommended to use `apt` when used interactively in Ubuntu versions 16.04 and later.
> More information: <https://manpages.debian.org/latest/apt/apt-get.8.html>.
- Update the list of available packages and versions (it's recommended to run this before other `apt-get` commands):
`apt-get update`
- Install a package, or update it to the latest available version:
`apt-get install {{package}}`
- Remove a package:
`apt-get remove {{package}}`
- Remove a package and its configuration files:
`apt-get purge {{package}}`
- Upgrade all installed packages to their newest available versions:
`apt-get upgrade`
- Clean the local repository - removing package files (`.deb`) from interrupted downloads that can no longer be downloaded:
`apt-get autoclean`
- Remove all packages that are no longer needed:
`apt-get autoremove`
- Upgrade installed packages (like `upgrade`), but remove obsolete packages and install additional packages to meet new dependencies:
`apt-get dist-upgrade`