Upgrade HomeBrews, Mac OS and other stuff in one time!
Designed for Apple Mac, this Bash script performs an owner check/mod of /usr/local folder (to permit to any users to run HomeBrew update/upgrade without folder ownership errors), run HomeBrew + Cask update/upgrade/cleanup, run Atom upgrade, NPM update and finally run MAS & Mac OS upgrades.
git clone https://github.com/dade80vr/macupgrade.git
cd macupgrade
chmod +x macupgrade.sh
./macupgrade.sh
(with no arguments) run in quiet mode (default)
--help
show help
-v
verbose mode, show output from any script (default hide)
-m
monochrome output
Version 3.4 hit an error when running npm update -gq
so the update was been temporaly disabled for investigation.
npm ERR! code EEXIST
npm ERR! syscall symlink
npm ERR! path ../../../lib/node_modules/npm/man/man1/npm-adduser.1
npm ERR! dest /usr/local/share/man/man1/npm-adduser.1
npm ERR! errno -17
npm ERR! EEXIST: file already exists, symlink '../../../lib/node_modules/npm/man/man1/npm-adduser.1' -> '/usr/local/share/man/man1/npm-adduser.1'
npm ERR! File exists: /usr/local/share/man/man1/npm-adduser.1
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.
Plese wait for next update or help me to find the problem :)
If you got warnings or errors @ steps 2-3 (HomeBrew MAS upgrade) regarding installation of Xcode 9.0 please remove mas
and reinstall it from mas-cli/tap/mas
:
brew uninstall mas
brew install mas-cli/tap/mas
Se this issue for major details: mas-cli/mas#138
Code is under the MIT license.
rm -rf macupgrade