![]() I did not pay much attention to what I actually typed in. I was just happy that I was able to type something in the Terminal and see it actually working! ![]() When I was a complete beginner and I needed to install something on my Ubuntu machine, I went online and typed in “ How to install on Ubuntu” and it usually led me to a page with some commands which looked like this sudo apt update The rest of this article is dedicated to those of you in the first steps of your journey to becoming a Linux Expert!īy the time you reach the end of this article, I suggest you come back and read this summary once more, I assure you it will make much more sense then! sudo apt update: A Thorough Explanation If you want a deep-dive into the technical details of what apt update does, then go ahead and read the section “ sudo apt update: The Technical Details” below!ĭon’t worry if the above answer does not make sense to you as that was targeted at more experienced programmers who just wanted to refresh their memories. This ofcourse is just a simplified big picture of what how apt update works. On giving the sudo apt update command, apt talks to the repositories in the cloud to get the latest available versions of each of the apps installed in our systems. Similarly, whenever we wish to update the “available version” column in the apt database we click the update button of apt! When we click the refresh button, what happens is our browser retrieves the webpage again from the webserver to get the most recent or up-to-date version of the webpage. On our browsers, if we want to reload a webpage, we usually go for the small circle near the address bar. To understand what the command “ sudo apt update” does, let’s take a little detour! ![]() These official “app stores” where you can find apps a.k.a “software packages” are called “repositories” in Linux.Īpt enables you to keep track of what software is already installed on your system, what versions they are and what are the latest versions available in the market.Īn oversimplified version of the apt’s database is presented in the picture below. In fact, the very idea of a “centralized location for storing verified software” originated in the world of Linux before it made it to iOS and Android! Similar to AppStore and PlayStore, Linux apps also come from marketplaces where developers can upload their apps and which are then verified to be free from malware and made ready to be downloaded. Let us understand what it all means shall we! That’s a lot of jargon thrown into a single sentence! “apt update” updates the package sources list to get the latest list of available packages in the repositories This article is all about demystifying the “ sudo apt update” command by learning what it does and how it does it!įor those of you in a hurry, here is the “Short Version” of the answer! sudo apt update: In a Nutshell!Ī simple one-line answer to the question: what does “sudo apt update” do?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |