Package Management
Package Management
Package managers install, update, and remove software. The two main ones are
apt (Debian/Ubuntu) and yum/dnf (Red Hat/CentOS).bash
# Debian/Ubuntu (apt)
sudo apt update # Update package list
sudo apt install nginx # Install a package
sudo apt remove nginx # Remove a package
sudo apt upgrade # Upgrade all packages
# Red Hat/CentOS (dnf)
sudo dnf install nginx
sudo dnf remove nginx
sudo dnf updateTip:Always run 'apt update' before installing packages to ensure you get the latest versions.
Terminalbash
Welcome to the Linux Terminal Simulator!
Type commands below. Use 'help' to see available commands.