Skip to content

Instantly share code, notes, and snippets.

@amaurybsouza
Created April 19, 2023 10:22
Show Gist options
  • Save amaurybsouza/f9cd363b8cd9c4d4109a5bffa0affec9 to your computer and use it in GitHub Desktop.
Save amaurybsouza/f9cd363b8cd9c4d4109a5bffa0affec9 to your computer and use it in GitHub Desktop.
shell script update
#!/bin/bash
# Update package lists
sudo apt update ; apt uprade -y
# List the packages
sudo apt list --upgradable
# Remove unnecessary packages
sudo apt autoremove -y
# Clean up package cache
sudo apt clean
echo "System update completed!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment