On Ubuntu list package versions or use apt (apt list –upgradable command) to check package version available for the system.
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
Get a list of upgradable packages 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.