1) Ubuntu Package management
apt list – list packages based on package names
apt search – search in package descriptions
apt show – show package details
apt update – update list of available packages
apt upgrade - install the available all packages , includes kerenl etc/ upgrade the system by installing/upgrading packages
apt install – install packages
apt remove – remove packages
apt purge – remove packages and configuration files:
apt list --installed #To list the installed packages on your Ubuntu
dpkg-query -l # this for older versoins of ubuntu
apt-cache showpkg PKG_NAME # shows from which repository the package comes
dpkg -s PKG_NAME # shows from which repository the package comes
check packages are coming from which repos
apt-cache policy <<Package_Name>>
apt-cache showpkg cifs-utils | less ==> shows the package installed from which repos
For example, if you want to install a package from the focal-updates repository, you would use:
sudo apt-get install -t focal-updates <package-name>
dpkg-reconfigure -a
dpkg --configure -a
dpkg -l | grep waagent
apt-get clean
apt list --upgradable = check the list of available upgardes
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C
Post a Comment