

- #Debian apt commands how to#
- #Debian apt commands install#
- #Debian apt commands update#
- #Debian apt commands upgrade#
apt update only updates the database of the packages.įor example, if you have XYZ package version 1.3 installed, after apt update, the database will be aware that a newer version 1.4 is available. Though it sounds like when you do an apt update, it will update the packages and you’ll get the latest version of the package. What is the difference between apt update and apt upgrade?
#Debian apt commands upgrade#
Whereas, the normal upgrade command won’t do this. There is another way to provide a complete upgrade by using the command below: sudo apt full-upgradeįull-upgrade works the same as upgrade except that if system upgrade needs the removal of a package already installed on the system, it will do that. This will show you how many and which all packages are going to be upgraded. You can simply use the command below: sudo apt upgrade The most convenient way is to upgrade all the packages that have available updates. Once you have updated the package database, you can now upgrade the installed packages. You can see that there is download information (size in kb) with the ‘get’ line in the screenshot above. It will download the information about the version (not the package itself).

Subscribe to our YouTube Channel for more Linux Videos Update package database with aptĪpt actually works on a database of available packages. In case you are curious, I have already explained the difference between apt and apt-get in a previous article. The apt commands provide a command line way to interact with APT and manage packages.Īt this point, I must mention apt-get was perhaps the most popular tool around APT.
#Debian apt commands install#
You can use it to find and install new packages, upgrade packages, remove the packages etc. But APT is a more friendly way to handle packaging. There is already dpkg commands to manage it.

APT (Advanced Package Tool) is the command line tool to interact with the packaging system in Debian-based Linux distributions. This way, you don’t have to build a program from the source code which, trust me, is not a pretty way to handle packages. A packaging system is a way to provide programs and applications for installation. What is apt?ĭebian Linux uses dpkg packaging system. In this guide for Linux beginners, I am going to explain you various apt commands with examples so that you can use them as an expert Linux user.
#Debian apt commands how to#
As more and more Ubuntu-based Linux distributions are pushing for apt to be the recommended command for package management, it is time that you learn how to use apt commands. If you are using Debian, Ubuntu, Linux Mint or any other Debian or Ubuntu based distributions, you must have come across some apt commands by now.įirst noticed in Ubuntu 16.04, apt is slowly gaining popularity.
