How to upgrade all upgradable packages in Ubuntu? Get apt-get list available packages and know which of the following packages have been kept back.
Here is how to check available updates in Ubuntu:
To get a list of upgradeable packages in Ubuntu Linux Systems, use the following command to print the packages list that can be upgraded:
apt list --upgradable
This command is useful as it lists down all those packages that can be upgraded.
Once you get the full list of upgradable packages, one can select the package/software that needs to be upgraded.
Users can manually select and upgrade a single package or upgrade of multiple packages one by one.
Linux Users can manually select and upgrade the single package using the following command:
sudo apt --only-upgrade install package_name
Note that the command apt list –upgradable may not show any new kernel versions available which are to updated or upgraded.
To update the list of packages in the Ubuntu repository; we run “sudo apt update” command to update the list of packages on the repository. Similarly to upgrade the packages that are pending updates, we run “sudo apt upgrade” command.
sudo apt update
sudo apt upgrade
Remember, it’s wise to keep your system updated.