

- #Sudo apt install upgrade update#
- #Sudo apt install upgrade upgrade#
- #Sudo apt install upgrade download#
#Sudo apt install upgrade upgrade#
After running the sudo apt upgrade command, software_X will be updated to version 1.3.1.Ĭontinuing with our factory analogy, let us say all the workers are using a 2015 Macbook model for doing all computer tasks. output2: sudo apt upgradeįor example say software_X has version 1.2.2 installed on our system, but a newer version, say 1.3.1 is available in the repo.
#Sudo apt install upgrade download#
The packages mentioned in the following line have newer versions available no the repo and once you press “Y”(for yes) and press the “Enter” button, the apt application will download and install the updated packages on your Linux machine as shown in the screenshot below. Your output might look a bit different than mine, but the important things to note here is the line that says “The following packages will be upgraded:”. The output of the command “ sudo apt upgrade” is shown in the screenshot below output1: sudo apt upgrade
#Sudo apt install upgrade update#
The apt command is responsible for installation, removal, and updating of software in our system.Ī good analogy is to think of your computer as a factory and the apt command as the manager in that factory who is responsible for the installation of new equipment, removal of equipment that is no longer needed, and update desired equipment to their latest versions, while maintaining records of the equipment names and versions which are currently present in the factory. Let us start by exploring the answer to the question “What does apt do?” I can see that the above paragraph has too many “technical terms” (which I promised not to use!) but that is just the short version of the answer to explain the command “ sudo apt upgrade“, so do not worry if you don’t understand every word in that paragraph!īy the end of this article we will get back to this short answer version and by that time I am sure you will be able to understand what every word meant in the short answer above! What is the meaning of the command “ sudo apt upgrade“? sudo apt upgrade is the command used to download any available updates and apply them to the out-dated packages installed in a Linux system. Let us see what this command does, how it does that, and the reason you need to do this every time you need to install an app on your Linux computer.įor those of you in a hurry, here is the short version of the answer! The Short Version of the Answer In this article, I have tried to explain what this command means from a beginner’s perspective avoiding unnecessary “technical terms” and I have tried to keep this article concise so that you can get through the entire article in about 10 to 20 mins max!


I guess to beginners, it just feels like a magic spell to get something installed!

The /etc/apt/sources.list file contains a list of locations from which to retrieve desired package files.I was just happy that I was able to type something in the Terminal and that it actually worked and did what I wanted it to do! I did not pay much attention to what I actually typed in. The dist-upgrade command may therefore remove some packages. dist-upgrade commandĭist-upgrade in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages apt-get has a “smart” conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones if necessary. New versions of currently installed packages that cannot be upgraded without changing the install status of another package will be left at their current version.Īn update must be performed first so that apt-get knows that new versions of packages are available. Packages currently installed with new versions available are retrieved and upgraded under no circumstances are currently installed packages removed, or packages not already installed retrieved and installed. Upgrade is used to install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list. Sudo apt-get upgrade brackets upgrade command Sudo apt-get install -only-upgrade brackets For example, to only upgrade Brackets on its own do:
