If you are interested to learn more about how software packages are managed in Linux I highly recommend reading the article in the link below.Ī Beginners Introduction To Linux Package managers: apt, yum, dpkg & rpm maintain the list of software that is installed in our system.The words “manage software” in the above paragraph simply refer to these 5 basic tasks Let us next explore the answer to the question “What does apt do?” What does apt do?ĪPT stands for Advanced Packaging Tool which is a tool that is used to manage software in our system and apt is the software used to communicate this APT software management tool. In this video we have explored the nature of the command line interface and the ideas behind its creation. So let us begin! apt update & apt upgrade: A Thorough Explanation! The Fundamentalsīefore getting into the command itself, lets get our basics strong by answering the following question 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 update“, 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 does the “ &” do? The double-ampersand is an operator telling the bash terminal to first execute the command before the & operator and if that command was successfully executed without any errors, then go ahead and execute the command after the “&” operator.Īlso worth noting is that this double-ampersand is not specific to the apt command used here, we can use that with any bash commands! What is the difference between apt update and apt upgrade? “apt-get update” updates the package sources list to get the latest list of available packages in the repositories and “apt-get upgrade” updates all the packages presently installed in our Linux system to their latest versions. 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!įor those of you in a hurry here is the short version of the answer! The Short Version of the Answer Let’s see the difference between these 2 commands and what happens internally once you execute these commands. In plain English, update and upgrade have almost the same meanings, so it can get confusing for a beginner to understand what these commands actually do. I guess to beginners, it just feels like a magic spell to get something installed!Īs time went on, so many of my google searches led to using very similar patterns of “apt update” and “apt upgrade” commands to install stuff. I was just happy that I was able to type something in the Terminal and it actually worked! I did not pay much attention to what I actually typed in.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |