![]() Update – unlike what you’d expect, it instructs to fetch the latest list of available packages from the repositories – instead of “updating the packages”.Īfter you enter the command, you get to manage your packages as per the latest database available to you. Sudo – this is mandatory as a prefix for a command if you need root privileges.Īpt-get – to manage a package (install/remove/update) you need to start your command with this. To understand the command, we’ll break it down: So, basically, you are just refreshing the list of available updates with this command. And, it is very important to enter this command before trying to install anything because you will be able to avoid outdated files from the database. It just updates the list of latest updates available for the packages installed on your system. What does sudo apt-get update do?įirst of all, it is one of the Linux commands to maintain the packages. So, yes, if a Linux distro uses a different packaging system – you will not need to utilize apt-get there. And, APT command line tool is required to help manage the packages using that package system. But, this stands true only for Debian derived Linux distribution like Ubuntu because Debian relies on dpkg packaging system to install and manage applications/programs. Technically, APT stands for Advanced Package Tool – which points to this as the command for package management. Can I enter both apt-get update and apt-get upgrade command at once?Īnswer: apt-get command helps you to manage the packages on your Linux system. ![]() Common Confusion: Is it sudo apt-get update or sudo apt-get upgrade?.Here’s what happens when you enter the sudo apt-get update command:.Note: For all the commands mentioned, ignore the symbols and replace what’s written inside it with the package name. So, in this article, we will talk about all the apt-get commands while also mentioning specifically what apt-get update does. I’ve been there.īut, after reading this article – you won’t look back to refer what apt-get does and how do you utilize it. A few users just copy-paste the command from the forum and get it working. I’m sure that when we get used to the commands we don’t even bother to know what it actually does – technically (or what does it mean). Fret not, the apt-get command is not rocket science, you just need to know what it does to be able to correctly utilize it.Īlso, if you understand what it does, you do not have to go search on the Internet repeatedly, it isn’t big command, is it? Just something tiny that does something important! In my case, I use elementary OS 5 Juno, which is based on Ubuntu. You will need to utilize this command if you are using Ubuntu or any other Ubuntu-based distribution or flavors. ![]() When you choose to install a Linux distribution, you have to prepare yourself to know some of the important terminal Linux commands that you can’t escape from. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |