txtliner.blogg.se

Sudo apt
Sudo apt




  1. #Sudo apt how to
  2. #Sudo apt install
  3. #Sudo apt update
  4. #Sudo apt free

#Sudo apt update

So next time you look at any Linux command don’t let all the jargon overwhelm you as it’s just an app with some buttons!īefore looking at what happens when you click on the update and upgrade buttons, let us first learn how apps are managed in a Linux system with apt. What you are doing is opening an application named apt and clicking the button named update! So when you type in the terminal sudo apt update If apt were a modern-day application, its interface will likely look something like this The structure of these “text-based commands” usually looks like this This interface is called the Command Line Interface (CLI) Nowadays we are all used to applications with fancy graphical user interfaces, with buttons to click and forms to enter data.īut back in the era when graphics hardware was not capable enough to handle fancy graphical user interfaces, people interacted with the computers with simple text-based commands. If you are looking for some quiet reading time, then skip the video and read on! How Do Commands Work?įor those of you who love learning via videos, here is one we made to explain this concept! Let us start with the following question. Without further ado, let’s begin! The Fundamentals I decided to put together everything I learned into an “easy-to-digest” article so that it can be useful for beginners!

#Sudo apt install

I guess to beginners, it just feels like a magic spell to get our favorite software 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 and my curiosity got the better of me, which inspired me to learn what these commands do and what happens in the background when you execute these commands. 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!

#Sudo apt how to

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.

sudo apt

To understand what the command “ sudo apt update” does, let’s take a little detour!

sudo apt

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!

sudo apt

#Sudo apt free

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.

sudo apt

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?






Sudo apt