How Do I Update Ubuntu Using Terminal?
How Do I Update Ubuntu Using Terminal?
line
I am a new Ubuntu Linux user. I need to update Ubuntu Linux, but do not have GUI installed
on my AWS/Google cloud server. How do I update Ubuntu using terminal? How can I
upgrade Ubuntu using terminal command line?
Introduction: Ubuntu Linux is a free and open source operating system based on GNU
userland and Linux kernel. Ubuntu is well known for ease of use. It is popular on both
desktop and servers. One can update Ubuntu Linux using terminal bash shell. This page
shows how to upgrade all installed Ubuntu apps using terminal session.
Tutorial details
Difficulty level Easy
Root privileges Yes
Requirements Linux terminal
Category Package Manager
OS compatibility Debian • Mint • Pop!_OS • Ubuntu • WSL
Est. reading time 3 minutes
How to sync the package index files from their sources via Internet
First, open the terminal application. Then run the following command:
Listing... Done
tzdata/focal-updates,focal-updates 2024a-0ubuntu0.20.04.1 all [upgradable
from: 2024a-0ubuntu0.20.04]
tzdata/focal-security,focal-security,now 2024a-0ubuntu0.20.04 all
[installed,upgradable to: 2024a-0ubuntu0.20.04.1]
tzdata/focal,focal 2019c-3ubuntu1 all
Next, execute the following command to apply package updates and patches:
uname -r
Want to upgrade existing packages to fix security or other issues? No problem. The syntax is
as follows:
Conclusion
You learned how to update or upgrade Ubuntu Linux using terminal based session for all
installed apps using the CLI. The apt command or apt-get command have many more options.
Therefore, I suggest that you consult the following manual pages using the help command or
man command:
man apt
man apt-get
apt --help
This entry is 6 of 13 in the Debian/Ubuntu apt-get Tutorial series. Keep reading the rest of the
series:
� Was this helpful? Please add a comment to show your appreciation or feedback.
Hi! �
I'm Vivek Gite, and I write about Linux, macOS, Unix, IT, programming, infosec, and open
source. Subscribe to my RSS feed or email newsletter for updates.
Related Tutorials
How To Update macOS Using Command Line Software Update Tool
Helped a lot with my Ubuntu 18.04 AWS pro server. Thank you.
↩∞
↩∞
sudo apt update && sudo apt upgrade && sudo apt full-upgrade && sudo
apt dist-upgrade && sudo apt-get check && sudo apt -f install && sudo
apt -y clean && sudo apt -y autoclean && sudo apt autoremove && sudo
dpkg --configure -a && sudo apt --fix-broken install
↩∞
Fetch update software list by running the sudo apt-get update command
Update Ubuntu software by running the sudo apt-get upgrade command
Finally, reboot the Ubuntu box by running the sudo reboot command.
↩∞
Very helpful
↩∞
↩∞
No, it upgrades all installed packages, such as Linux kernel, bash, and gnome
apps. Are you looking to upgrade your OS next release? Maybe see how to
upgrade Ubuntu 20.04 to 22.4 page: https://www.cyberciti.biz/faq/upgrade-
ubuntu-20-04-lts-to-22-04-lts/
↩∞
↩∞
Thank you
↩∞
Hi
I tried this on my Chromebook, and it deleted all my Linux files and refused to start. It
says Penguin Not Found.
DO NOT TRY ON CHROMEBOOKS!
(By the way, You should have tried this on a virtual Chrome OS to test that this works
or not)
↩∞
Are you using Ubuntu on your Chromebook? The ChromOS is Linux based
but it does not allow to run Linux command directly. This has nothing to do
with Ubuntu.
↩∞
↩∞
Leave a Reply
Your email address will not be published. Required fields are marked *
Comment *
Name
Use HTML <pre>...</pre> for code samples. Your comment will appear only after approval by the site admin.
🔥 FEATURED ARTICLES
1
2
3
4
5
6
7
9
10
👀 /etc
➔
➔
RSS/Feed
➔
About nixCraft