Privacy Policy
© 2025 linux101.dev

APT (Debian/Ubuntu)

Advanced Package Tool (`apt`) is the primary command-line tool for handling packages on Debian-based systems.

Installing Packages

Install a new package

sudo apt install <package_name>

Installs a package and its dependencies.

Searching and Updating

Search for a package

sudo apt search <keyword>

Searches for packages that match the specified keyword.

Update package lists

sudo apt update

Fetches the latest package information from configured repositories.

Upgrading and Cleaning

Upgrade installed packages

sudo apt upgrade

Upgrades all installed packages to their latest versions.

Remove unused dependencies

sudo apt autoremove

Removes packages that were installed automatically to satisfy dependencies and are no longer needed.

Clear the package cache

sudo apt clean

Removes downloaded package files from the local cache.