Skip to content

Instantly share code, notes, and snippets.

@Phoenix2k
Last active September 23, 2018 18:16
Show Gist options
  • Save Phoenix2k/c4595f7f2ee6c3cccc45 to your computer and use it in GitHub Desktop.
Save Phoenix2k/c4595f7f2ee6c3cccc45 to your computer and use it in GitHub Desktop.
Update scripts
#!/bin/bash
bold=`tput bold`
normal=`tput sgr0`
clear
printf "Updating ${bold}Debian packages${normal}...\n";
sudo aptitude update && sudo aptitude full-upgrade
#!/bin/bash
bold=`tput bold`
normal=`tput sgr0`
clear
printf "Updating ${bold}Composer packages${normal}...\n";
composer global update
printf "\nUpdating ${bold}Docker${normal}...\n";
docker-machine upgrade
printf "\nUpdating ${bold}Ruby${normal}...\n";
gem update --system -n /usr/local/bin
gem update -n /usr/local/bin
printf "\nUpdating ${bold}NPM${normal}...\n";
npm install npm@latest -g
printf "\nUpdating global ${bold}NPM packages${normal}...\n";
npm -g outdated --parseable=true | cut -d : -f 4 | xargs -n 1 npm -g install;
printf "\nUpdating ${bold}Homebrew packages...${normal}\n";
brew update
brew upgrade
brew doctor
brew prune
brew cleanup
#!/bin/bash
bold=`tput bold`
normal=`tput sgr0`
clear
printf "Updating ${bold}Ubuntu packages${normal}...\n";
sudo apt-get update && sudo apt-get upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment