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 updateFetches the latest package information from configured repositories.
Upgrading and Cleaning
Upgrade installed packages
sudo apt upgradeUpgrades all installed packages to their latest versions.
Remove unused dependencies
sudo apt autoremoveRemoves packages that were installed automatically to satisfy dependencies and are no longer needed.
Clear the package cache
sudo apt cleanRemoves downloaded package files from the local cache.