Here are some common apt commands used for package management:
-
Update package list:
sudo apt update -
Upgrade installed packages:
sudo apt upgrade -
Install a new package:
sudo apt install package-name -
Remove a package:
sudo apt remove package-name -
Search for a package:
apt search package-name -
Show package information:
apt show package-name -
Clean up unused packages:
sudo apt autoremove -
List installed packages:
apt list --installed
These commands help manage software installations and updates effectively on Debian-based systems.
