![]() ![]() ![]() The output below shows the list of the packages to be upgraded. These are the new packages that will be installed in your system. Let’s see the other part of the output of the sudo apt upgrade command. You can remove these packages with the sudo apt autoremove command. The output shows the automatically installed packages due to some dependency resolution. The output above displays just a small portion of upgradable packages. You can use the following command to see the packages that can be upgraded. Hit:1 stable InReleaseġ908 packages can be upgraded. Now, let’s implement these commands practically.įirst, use the sudo apt update command. How to Use the apt update and apt upgrade Commands? Here we skipped installing all new packages entirely and only installed one new package(or version). In case you do not want to install all the newer versions that are available for several packages and only want one in specific, you can do that by running: sudo apt update Note that it isn’t mandatory to use these two commands together all the time. These commands can also be written in the following form. So, we use these commands in the following order: sudo apt update When we enter this command, we’re sending a command to our machine to check and compare the versions of all the packages that are installed in our machine currently with the packages in the list that we copied earlier through sudo apt update, and then upgrade the packages whose newer versions are available. On the contrary, sudo apt upgrade updates all the currently installed packages in our machines to their latest versions. When we enter this command, we send a command to browse the package list and copy the latest version to our local machine. The command checks for the latest list of available packages in the repositories. It is necessary to note that update doesn’t install any packages or even upgrade them. sudo apt update updates the list of all packages that are available along with their versions. apt, as mentioned earlier, invokes the Advanced Package Tool. Let’s learn the sudo apt update command in detail first.Īs you’re trying to add or modify packages, you need to have root privileges.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |