APT = Advanced Package Tool apt-get is the older command of apt apt: + apt-get + apt-cache sudo apt install sudo apt install -s # simulation sudo apt reinstall sudo apt remove # keep its configuration files sudo apt purge # remove its configuration files too sudo apt autoremove # remove packages that are # automatically installed to # satisfy dependencies but are no # longer needed sudo apt autoremove --purge # remove unused packages + config sudo apt update # update the package lists apt list --installed # show installed packages sudo apt list --upgradeable # show upgradeable packages sudo apt list -a # list all available versions of # the given package sudo apt install --only-upgrade # just upgrade given package sudo apt upgrade # upgrade all installed packages sudo apt full-upgrade # full upgrade, may remove some # packages if necessary. /etc/apt/sources.list /etc/apt/sources.list.d/ sudo add-apt-repository ppa: # adding a new package repository sudo add-apt-repository --remove ppa: # remove a package repository ppa = personal package archive launchpad.net apt search # search for a package apt show # show information about package sudo apt --fix-broken install # if there are broken dependencies # you can attempt to fix them sudo apt clean # to free up sapce, clean the # package cache sudo apt autoclean # remove old packages in cache that # are omitted from repository and # are not downloadable less /var/log/apt/history.log # APT logs its activities, usful for # debugging less /var/log/apt/term.log apt-mark showhold # ? sudo apt-mark unhold # ? apt depends # show dependencies of the given # package apt depends --recurse --important apt download # download .deb file apt source # download source apt-mark showmanual # show packages that marked as manual apt-mark showauto # show packages that marked as auto sudo apt-mark auto|manual gcc # change mark of a package sudo apt-mark hold|unhold # protect and unprotect a package # from being updated. apt-mark showhold # show hold packages apt policy # ?