Updates and Packages

Help and Info~3 minView script

Curated reference of apt and Proxmox-specific upgrade commands: system updates, package install / remove / purge, package lookups (apt-cache policy, dpkg -l), and repository configuration inspection.

Always update the index first

apt update refreshes the local package index from the configured repositories. Without it, apt install may pull stale versions or fail with "Unable to locate package".

System Updates

CommandDescriptionAction
apt update && apt upgrade -yRefresh package lists and upgrade installed packages (apt upgrade)
apt dist-upgrade -yFull system upgrade, including dependencies
apt updateUpdate package lists only
apt upgradeUpgrade packages only (interactive)
apt full-upgradeUpgrade packages with dependency handling (interactive)

Proxmox Updates

CommandDescriptionAction
pveupdateUpdate Proxmox package lists
pveupgradeStart the interactive Proxmox package upgrade
pve8to9 --fullCheck readiness for the PVE 8 to 9 upgrade (does not perform it)
ceph versionsShow Ceph daemon versions before planning a Ceph upgrade

Package Management

CommandDescriptionAction
apt autoremove --purgeRemove unused packages and their config
apt cleanClear out the local repository of retrieved package files
apt autocleanClear out only outdated package files
apt install <package>Install a specific package
apt remove <package>Remove a package
apt purge <package>Remove a package and its configuration files

Package Information

CommandDescriptionAction
apt list --installedList all installed packages
apt search <keyword>Search for packages by keyword
apt show <package>Show detailed information about a package
dpkg -lList all installed packages (alternative)
dpkg -l | grep <keyword>Search installed packages by keyword
apt-cache policy <package>Show package versions and priorities

Repository Management

CommandDescriptionAction
cat /etc/apt/sources.listShow main APT repository sources
ls -la /etc/apt/sources.list.d/List additional repository source files
cat /etc/apt/sources.list.d/pve-enterprise.listShow Proxmox Enterprise repository configuration in the PVE 8 .list file
apt-key listList legacy repository signing keys where apt-key is available

Take a backup before major upgrades

For routine updates, Proxmox recommends apt update && apt full-upgrade; review the proposed package changes before confirming. For major version upgrades (PVE 8 → 9), use the dedicated ProxMenux flow: Upgrade PVE 8 to PVE 9. It adds readiness checks, repository migration and post-upgrade validation. Back up first.

Related