Ubuntu check for update and install those update command

sysadmin
apt-get
ubuntu

#1

I need to first check for update from the terminal session. How can I check for update and install those update using command line options on an Ubuntu Linux server?


#2

How to get a list of packages that can be upgraded on Ubuntu?

Try

sudo apt update
sudo apt list --upgradable


See 8 packages can be upgraded. So apply them using the apt command as follows

sudo apt upgrade