mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-06 02:15:42 +02:00
apt: revised all descriptions (#16944)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
parent
cd59f61693
commit
e3f52cd0e7
1 changed files with 13 additions and 13 deletions
|
@ -1,38 +1,38 @@
|
||||||
# apt
|
# apt
|
||||||
|
|
||||||
> Package management utility for Debian based distributions.
|
> Package manager for Debian-based distributions.
|
||||||
> Recommended replacement for `apt-get` when used interactively in Ubuntu versions 16.04 and later.
|
> Intended as a user-friendly alternative to `apt-get` for interactive use.
|
||||||
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
|
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
|
||||||
> More information: <https://manned.org/apt.8>.
|
> 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):
|
- Update the list of available packages and versions (recommended before running other `apt` commands):
|
||||||
|
|
||||||
`sudo apt update`
|
`sudo apt update`
|
||||||
|
|
||||||
- Search for a given package (use `apt search --name-only package` to search within package name only):
|
- Search packages by name or description:
|
||||||
|
|
||||||
`apt search {{package}}`
|
`apt search {{package}}`
|
||||||
|
|
||||||
- Show information for a package:
|
- Search packages by name only (supports wildcards like `*`):
|
||||||
|
|
||||||
|
`apt list {{package}}`
|
||||||
|
|
||||||
|
- Show detailed information about a package:
|
||||||
|
|
||||||
`apt show {{package}}`
|
`apt show {{package}}`
|
||||||
|
|
||||||
- Install a package, or update it to the latest available version:
|
- Install a package, or update it to the latest version:
|
||||||
|
|
||||||
`sudo apt install {{package}}`
|
`sudo apt install {{package}}`
|
||||||
|
|
||||||
- Remove a package (using `purge` instead also removes its configuration files):
|
- Remove a package (use `purge` instead to also remove configuration files):
|
||||||
|
|
||||||
`sudo apt remove {{package}}`
|
`sudo apt remove {{package}}`
|
||||||
|
|
||||||
- Upgrade all installed packages to their newest available versions:
|
- Upgrade all installed packages to their latest versions:
|
||||||
|
|
||||||
`sudo apt upgrade`
|
`sudo apt upgrade`
|
||||||
|
|
||||||
- List all packages:
|
- List all installed packages:
|
||||||
|
|
||||||
`apt list`
|
|
||||||
|
|
||||||
- List installed packages:
|
|
||||||
|
|
||||||
`apt list {{[-i|--installed]}}`
|
`apt list {{[-i|--installed]}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue