|||

Update macOS with an all in one alias

The pieces

Combining brew update commands, and commands from the posts update-macos-via-cli-with-softwareupdate and manage-mac-appstore-apps-with-mas, an all in one alias was created that will update macOS System Software, Mac App Store Apps, and brew apps.

System Updates

From the update-macos-via-cli-with-softwareupdate use the command softwareupdate -ia.

softwareupdate -ia

Mac App Store Updates

From the manage-mac-appstore-apps-with-mas include the command mas upgrade.

mas upgrade

Brew Updates

Use the brew update, upgrade, and cleanup to install pending updates and upgrades for brew managed apps.

brew update && brew upgrade && brew cleanup

Putting it all in an alias

Placing the alias updatemac=“softwareupdate -ia && mas upgrade && brew update && brew upgrade && brew cleanup” in my .zshrc file allows me to excute updatemac and the command line to update system, App Store, and brew managed apps.

alias updatemac="softwareupdate -ia && mas upgrade && brew update && brew upgrade && brew cleanup"

Up next Mac App Store Command Line Interface Using Brew Bundle to Backup and Restore Mac App Store and Brew Apps
Latest posts Change Synology NAS Password from the CLI Free Git eBook Using Brew Bundle to Backup and Restore Mac App Store and Brew Apps Update macOS with an all in one alias Mac App Store Command Line Interface Update macOS with softwareupdate command Markdown Crash Course Video What’s New with Fusion and Workstation [HCP1833] File IO in Python Overview of vSphere 7 Video What is ISO? Migrating Website HTML details Tag Microsoft RD Client iOS App Create VMware ESXi USB Install Media Intel NUC Lab Hosts Hardware Setup Installing Microsoft SQL 2016, and Management Studio Deploy VMware vCenter Appliance (VCSA) Installing the First Two Domain Controllers in the VMware ESXi 6.7 Lab Environment Macchanger Utility, and Usage Install a Kali Linux VM in a VMware ESXi 6.7 Environment Install Ubuntu 18.04 Virtual Machine in a VMware ESXi 6.7 Environment Install xRDP on Ubuntu 18.04 Install Chromium on Ubuntu 18.04 Install OpenSSH on Ubuntu 18.04 Install VMware Workstation 14 on Ubuntu 18.04 Nested ESXi server Laboratorium Rattus The Animal Within Who is Veeam? RSAC OnDemand Videos Create a Windows 10 Sandbox VM on VMware Workstation 14