To update installed packages for security in Ubuntu 18.04, you can use the following steps:
- Open the terminal.
- Update the package index:
sudo apt update
- Upgrade all installed packages to the latest available version, including security updates:
sudo apt upgrade
- To update the installed packages specifically for security, you can use the following command:
sudo apt-get upgrade --only-upgrade
Note: The apt-get
command is being deprecated and is gradually being replaced by apt
, but it still works in Ubuntu 18.04.
After the upgrade process is completed, you can use the apt list --upgradable
command to verify that all security upgrades have been installed successfully.