Skip to content

System Update Script

This script will update your Ubuntu/Debian system and display OS information.

📋 Script

Bash
#!/bin/bash

sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y

lsb_release -a

🚀 How to Use

  1. Save the script above as update.sh.
  2. Make it executable:
    Bash
    chmod +x update.sh
    
  3. Run the script:
    Bash
    ./update.sh
    

Note

After running, A reboot may or may not be necessary:

Bash
sudo reboot