Three simple command line to keep your Ubuntu Server updated with patches and security fixes.
- sudo apt-get update // This will refresh the list of all available updates. I would recommend running this before you run the upgrade commands to make sure you are getting all the available updates.
- sudo apt-get upgrade // This will install almost all updates except some of the big things like kernel updates and things that may require you to restart the system after the change. This will work a large amount of the time. If you however get something similar to “The following packages have been kept back: landscape-common linux-generic-pae linux-headers-generic-pae linux-image-generic-pae” you will need to run the dis-upgrade command and it will require a restart to have the changes applied.
- sudo apt-get dist-upgrade // This command will allow you to apply a kernel upgrade or some big changes that will require a restart to take effect. If this is a production survey I would recommend running this off peak hours.
Let’s keep our server box secure.
Source: Gustavo_Belemmi pixabay