“sudo apt-get update” Command Explained For Beginners! “sudo apt update” Command Explained For Beginners! If you have the itch to learn about these 2 commands in-depth, we got articles on each of those commands which you can find in the links below! While this section of the article covered the differences between these 2 commands, it did not cover them in depth. Just like we mentioned in the table the “ apt” commands are designed to be more user-friendly, hence this extra line of information! Which basically means we can give the command “ apt list –upgradable” to see the list of packages that can be upgraded to their newest versions. The “ apt update” command ends by giving out the following clue to the user on what to do next. output: apt-get upgradeĪs you can see in the first 2 lines of “ apt-get upgrade“, the jobs of “ Building dependency tree” and “ Reading state information… Done” are performed. In the “ apt” command the “ update” option does the job of “ Building dependency tree” while in the “ apt-get” command this job is given to the “ upgrade” option.īelow is the output of the “ apt-get upgrade” command. Now let us try the command “ apt-get update” and see how this one’s output looks like Output: apt-get updateĪs you can see both these commands match line by line till the line that says “ Reading package lists… Done“Īfter that the newer “ apt update” command has the following 2 more lines Building dependency treeĪs you might already know, typically, the “ update” command is followed by the “ upgrade” command. Let us experiment by giving the command “ apt update” and have a look at the output. Next let us move on to the question of focus in this article which is the difference between “apt update” and “apt-get update” apt update vs apt-get update: Differences in Functionality If you have the thirst to learn even more, we have a dedicated article to this topic which you can find in the link below! The apt and apt-get commands are both responsible for installation, removal, and updating of software in our system.Īs we mentioned at the beginning of the article, the main difference between the 2 is that apt is the newer one, meant to make our lives easier in the CLI through fancy features like progress bars, the ability to get the same results with fewer keystrokes, etc. Now that we have covered the fundamentals let’s get back to the topic! What is the difference between apt and apt-get? So let us begin by having a little fun and uncover the true nature of the command line interface! The rest of this article is dedicated to those of you in the first steps of your journey to becoming a Linux master! You can remember which is which by thinking “ apt” is shorter to type as compared to “ apt-get” and hence “ apt” is more useful in the command-line interface where we have to type things manually every time!ĭ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. The table below highlights their differences What is the difference between the commands “ apt update” and “ apt-get update“? Both these commands are used to download and update the package information from all of the configured sources, the difference is “apt-get” is old and is meant to be used with scripts while “apt” is newer and meant to be used in the command line interface. when to use apt update and when to use apt-get update?įor those of you who are in a hurry, here is the short version of the answer! “apt update” vs “apt-get update”: In a Nutshell!.What is the difference in terms of functionality?.In particular, we will try to answer the following questions in this article. In this article, let us learn what differentiates the 2 very similar commands “apt update” and “apt-get update”.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |