A comprehensive Ubuntu update script
. Get the Raw URL:
- After creating, click on the "Raw" button
- Copy the URL (it will look like:
https://gist.githubusercontent.com/YOUR_USERNAME/GIST_ID/raw/ubuntu-update.sh)
Once you have your raw gist URL, you can use these one-liners:
curl -sSL https://gist.githubusercontent.com/withakay/3834bc9566c272dab6e29c6d2ece9411/raw/ubuntu-update.sh | sudo bashcurl -sSL https://gist.githubusercontent.com/withakay/3834bc9566c272dab6e29c6d2ece9411/raw/ubuntu-update.sh -o /tmp/update.sh && chmod +x /tmp/update.sh && sudo /tmp/update.shcurl | sudo bash can be risky. Consider:
- Always review scripts before running them
- Use HTTPS URLs only
- Consider downloading first, reviewing, then executing
- Keep the gist private if it's for personal use only
For frequent use, add this to your ~/.bashrc:
alias update-system='curl -sSL https://gist.githubusercontent.com/YOUR_USERNAME/GIST_ID/raw/ubuntu-update.sh | sudo bash'Then you can simply run:
update-system