How to update ubuntu with single command ?
Today we are going to teach you how to update and upgrade ubuntu in terminal with single code.its really easy to update & upgrade ubuntu.
sudo apt-get update # Fetches the list of available updates
sudo apt-get upgrade # Upgrades the current packages
sudo apt-get dist-upgrade # Installs updates (new ones)
You can also creat script in ubuntu like shown below.
#!/bin/bash
set -e
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
Call this script like update.sh and place it in /usr/local/bin and then make this script executable with running:
sudo chmod +x /usr/local/bin/update.sh
Source is My blog https://www.fetodoit.com/server/how-to-update-ubuntu-with-single-command