About Lesson
APT is the default package manager for Debian-based systems.
-
Update Package Index:
-
Command:
sudo apt update
-
-
Upgrade Installed Packages:
-
Command:
sudo apt upgrade
-
-
Install a Package:
-
Command:
sudo apt install [package_name]
-
Example:
sudo apt install vim
-
-
Remove a Package:
-
Command:
sudo apt remove [package_name]
-
Example:
sudo apt remove vim
-
-
Search for a Package:
-
Command:
apt search [package_name]
-
Example:
apt search firefox
-
-
Show Package Details:
-
Command:
apt show [package_name]
-
Example:
apt show git
-