Back to Help and Info

Updates and Packages Commands

This section provides commands for managing system updates and packages in Proxmox VE. Learn how to update your system, install and remove packages, search for software, and manage repositories.

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

Update Best Practices

  • Always run apt update before installing or upgrading packages
  • Consider creating a VM snapshot or backup before performing major system upgrades
  • Replace <package> with the actual package name
  • Replace <keyword> with your search term
  • Use apt autoremove --purge periodically to clean up unused packages and free disk space