Introduction: Keeping your system, kernel and the installed application is an essential sysadmin task. An updated Ubuntu 18.04 LTS system means fewer security issues and increased system stability. Ubuntu Linux is pretty user-friendly when it comes to applying updates and patches. This page shows how to update Ubuntu Linux system using the apt-get command/apt command or the GUI tools for desktop installation.
Ubuntu 18.04 update installed packages for security
The procedure to install updates on Ubuntu:
- Open the terminal app.
- For remote server log in using the ssh command: ssh user@server-name-here.
- Issue the command sudo apt update to refresh package database
- Install/apply updates by running sudo apt upgrade command.
- Reboot the system if kernel was updated by typing sudo reboot command.
Let us see all steps in details.
Ubuntu Linux 18.04 LTS: Updating your system using GUI
The GUI method is easy which works great if you are using Ubuntu on a Laptop or Desktop. Press the Super key (Windows key) and type the following in search box:
update manager
Ubuntu update manager
Click on the “Install Now” button. You must provide your password in order to install updated software on Ubuntu Linux:
Finally you will see the following dialog box installing software:
Once installed you may be promoted to reboot the Ubuntu Linux system:
How to install updates via apt command line for Ubuntu 18.04
Open up a terminal application or log in using ssh. Run the following command to upgrade Ubuntu Linux system:
$ sudo apt update
Want to see all available package/software upgrades for Ubuntu? run:
$ apt list --upgradable
Finally, install updates via command line, run:
$ sudo apt upgrade
You need to enter your password when prompted. To accept updates press ‘y’ key (no quotes) and hit Enter key:
You must reboot system when Ubuntu Linux kernel gets updated:
$ sudo reboot
Conclusion
You learned how to install the software update for all installed packages using the GUI and CLI methods on Ubuntu Linux 18.04 LTS.
- Ubuntu 18.04 update installed packages for security
- How Do I Update Ubuntu Linux Softwares Using Command Line?
- Ubuntu Linux: Upgrade Linux Kernel
- Ubuntu Enable & Setup Automatic Unattended Security Updates
- Linux: Update All Packages Command
- How do I update Ubuntu using terminal command line
- Debian upgrade or update a single package using apt-get
- Ubuntu upgrade or update a single package using apt-get
- How do I see what packages are installed on Ubuntu Linux?
- What does sudo apt-get update command do on Ubuntu/Debian?
- Ubuntu Linux – How Do I install .deb Packages?
- apt-get hold back packages on Ubuntu / Debian Linux
- Ubuntu 20.04 LTS update installed packages for security
🐧 Get the latest tutorials on Linux, Open Source & DevOps via:
- RSS feed or Weekly email newsletter
- Share on Twitter • Facebook • 0 comments... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |