From e3f52cd0e7996ac4a09e483196523debfcb441e9 Mon Sep 17 00:00:00 2001 From: Suggon Date: Sat, 28 Jun 2025 16:54:14 +0545 Subject: [PATCH] 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> --- pages/linux/apt.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/pages/linux/apt.md b/pages/linux/apt.md index 64c28b56f9..f5cd78e6aa 100644 --- a/pages/linux/apt.md +++ b/pages/linux/apt.md @@ -1,38 +1,38 @@ # apt -> Package management utility for Debian based distributions. -> Recommended replacement for `apt-get` when used interactively in Ubuntu versions 16.04 and later. +> Package manager for Debian-based distributions. +> Intended as a user-friendly alternative to `apt-get` for interactive use. > For equivalent commands in other package managers, see . > More information: . -- 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` -- 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}}` -- 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}}` -- 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}}` -- 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}}` -- Upgrade all installed packages to their newest available versions: +- Upgrade all installed packages to their latest versions: `sudo apt upgrade` -- List all packages: - -`apt list` - -- List installed packages: +- List all installed packages: `apt list {{[-i|--installed]}}`