{"id":14106,"date":"2022-01-18T15:45:55","date_gmt":"2022-01-18T15:45:55","guid":{"rendered":"https:\/\/linuxways.net\/?p=14106"},"modified":"2022-01-20T19:24:53","modified_gmt":"2022-01-20T19:24:53","slug":"what-does-sudo-apt-get-update-do","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/what-does-sudo-apt-get-update-do\/","title":{"rendered":"What Does sudo apt-get update Do"},"content":{"rendered":"<p>In different Linux distributions, the recommended method is to update the packages before installing a new application on your system. We mostly used the \u2018sudo apt-get update command\u2019 before and after installing a new package for updating system packages list. Most of the users use this command but most of them do not know the exact purpose or do not have knowledge of how it works in Linux?<\/p>\n<p>In this post, we will talk about the \u2018sudo apt-get update\u2019 command and how does it work in Linux distribution.<\/p>\n<p>What does sudo apt-get update command do?<\/p>\n<p>The <a href=\"https:\/\/help.ubuntu.com\/community\/AptGet\/Howto\">apt-get update<\/a> is a well-known package management command in Linux system. In recent Linux distributions, the \u2018apt update\u2019 command is used.\u00a0 The \u2018apt-get\u2019 manages the packages such as install, update or remove. The repository contains the packages files and metadata information. The \u201csudo apt-get update\u201d or \u201csudo apt update\u201d command downloads the updates of all packages repositories from all configured files or sources.<\/p>\n<pre>$ sudo apt update<\/pre>\n<pre>$ sudo apt-get update<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"788\" height=\"375\" class=\"wp-image-14107\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-410.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-410.png 788w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-410-300x143.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-410-768x365.png 768w\" sizes=\"auto, (max-width: 788px) 100vw, 788px\" \/><\/p>\n<p>The \u2018apt-get update or apt update\u2019 command must run under the superuser \u2018sudo\u2019 or a root user privileges otherwise, you will get an error on the terminal window. So, the \u2018sudo apt-get update\u2019 command is used in older versions of Linux distributions. The standard user without root privileges cannot run this command.\u00a0 When we run the \u2018sudo apt-get update\u2019 command, it downloads the new packages updates from the internet. Using this command, you can easily collect the updated version details of installed packages or dependencies.<\/p>\n<p>We have given the basic idea about the sudo apt-get update command in the above post that is useful for all beginners and Linux users. To explore more about this command, run the apt-get update or apt update command on your Linux system. We can also <a href=\"https:\/\/linuxways.net\/de\/ubuntu\/set-up-automatic-unattended-updates-for-ubuntu-20-04\/\">set up automatic unattended updates<\/a> in the Linux system. Thanks!<\/p>","protected":false},"excerpt":{"rendered":"<p>In different Linux distributions, the recommended method is to update the packages before installing a new application on your system. We mostly used the \u2018sudo apt-get update command\u2019&hellip;<\/p>","protected":false},"author":1,"featured_media":14248,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[872,250],"class_list":["post-14106","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-apt","tag-sudo"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/14106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=14106"}],"version-history":[{"count":1,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/14106\/revisions"}],"predecessor-version":[{"id":14249,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/14106\/revisions\/14249"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/14248"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=14106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=14106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=14106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}