Last active
September 23, 2018 18:16
-
-
Save Phoenix2k/c4595f7f2ee6c3cccc45 to your computer and use it in GitHub Desktop.
Update scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
bold=`tput bold` | |
normal=`tput sgr0` | |
clear | |
printf "Updating ${bold}Debian packages${normal}...\n"; | |
sudo aptitude update && sudo aptitude full-upgrade |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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