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 -yUpdate and upgrade all system packages
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
pveupgradeShow available Proxmox upgrades
pve-upgradePerform Proxmox VE upgrade
pveceph upgradeUpgrade Ceph packages (if Ceph is installed)

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 repo config
apt-key listList repository signing keys

Take a backup before major upgrades

For point releases (8.4.1 → 8.4.5) the standard apt update &amp;&amp; apt upgrade is safe. For major version upgrades (PVE 8 → 9) use the dedicated ProxMenux flow: Upgrade PVE 8 to PVE 9 — it adds pre-flight checks, repository migration and post-upgrade validation.

Related