1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-04 14:15:23 +02:00
tldr/pages/linux/apt.md
Managor ae436c1b00
linux/*: add option placeholders (#16192)
* batch1

* batch2

* batch3

* batch4

* Update matchpathcon.md

* Update pages/linux/arecord.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update pages/linux/arecord.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update pages/linux/arecord.md

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>

---------

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
2025-04-19 21:21:53 +00:00

38 lines
1 KiB
Markdown

# apt
> Package management utility for Debian based distributions.
> Recommended replacement for `apt-get` when used interactively in Ubuntu versions 16.04 and later.
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
> More information: <https://manned.org/apt.8>.
- Update the list of available packages and versions (it's recommended to run this before other `apt` commands):
`sudo apt update`
- Search for a given package (use `apt search --name-only package` to search within package name only):
`apt search {{package}}`
- Show information for a package:
`apt show {{package}}`
- Install a package, or update it to the latest available version:
`sudo apt install {{package}}`
- Remove a package (using `purge` instead also removes its configuration files):
`sudo apt remove {{package}}`
- Upgrade all installed packages to their newest available versions:
`sudo apt upgrade`
- List all packages:
`apt list`
- List installed packages:
`apt list {{[-i|--installed]}}`