
If there are updates, you'll see an output similar to this: $ sudo apt-get update In the terminal, enter sudo apt-get update in the command line, enter in your admin password, and press the Enter key. For example, in Ubuntu and Linux Mint, the default terminal is Gnome Terminal, but may be listed under Terminal in the application menu. In your Debian-based Linux distro (Debian, Ubuntu, Linux Mint, Kali Linux, Raspberry Pi OS, and so on), open a terminal window.ĭepending on your distro, the terminal might go by different names depending on how you open it.
#Sudo apt get update and upgrade how to
How to Use the sudo apt-get update Command But just running sudo apt-get upgrade will not automatically upgrade the outdated packages – you'll still have a chance to review the changes and confirm that you want to perform the upgrades.

The sudo apt-get upgrade command downloads and installs the updates for each outdated package and dependency on your system.

In other words, it'll figure out what the latest version of each package and dependency is, but will not actually download or install any of those updates. The main difference is that sudo apt-get update fetches the latest version of the package list from your distro's software repository, and any third-party repositories you may have configured. What Are the Differences Between sudo apt-get update and sudo apt-get upgrade? In this article, I'll go into what both of these commands do, how to use them, and some frequently asked questions. They're common commands for Linux admins and people doing DevOps, but are handy to know even if you don't use the command line often. Sudo apt-get update and sudo apt-get upgrade are two commands you can use to keep all of your packages up to date in Debian or a Debian-based Linux distribution.
