Skip to content

Package Managers

Sync package database on the system:

Terminal window
pacman -Sy

List packages with available updates:

Terminal window
pacman -Qu

Perform a system update:

Terminal window
pacman -Syu

Install a specific package:

Terminal window
pacman -S <package_name>

Lists the installed packages on the system with sizes:

Terminal window
pacman -Qi | awk '/^Name/{name=$3} /^Installed Size/{print $4$5, name}' | sort -h

Counts the number of installed packages on system:

Terminal window
pacman -Qi | awk '/^Name/{name=$3} /^Installed Size/{print $4$5, name}' | sort -h | wc -l

Update the systems package database:

Terminal window
apt update

Install a specific package:

Terminal window
apt install <package_name>

List packages with updates:

Terminal window
apt list -u

List installed packages on the system:

Terminal window
apt list -i

Upgrade packages on system:

Terminal window
apt upgrade