Apt - Advanced package tool #
Update #
sudo apt update && sudo apt list --upgradable && sudo apt upgrade
sudo apt update && sudo apt list --upgradable && sudo apt upgrade && sudo apt autoremove
Upgrade only one package #
apt install --only-upgrade curl
Uninstall App #
sudo apt-get purge anydesk
sudo apt-get autoclean
sudo apt-get autoremove
Install Specific Version of a Package #
sudo apt install <package_name>=<version_number>
sudo apt install phpmyadmin=4:4.9.5+dfsg1-2
Which versions are available #
apt list --all-versions <package_name>
Install Package from Certain Software Source #
sudo apt install -t <software_source> <package_name>
find out the “<software_source>” #
apt-cache policy | more
sudo apt install -t "o=LP-PPA-phpmyadmin" phpmyadmin
or
sudo apt install -t "l=PPA for phpMyAdmin" phpmyadmin
Show sources lists #
ls /etc/apt/sources.list.d/