Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #84: Update softwareupdate verbose flag #90

Merged
merged 2 commits into from Feb 10, 2019

Conversation

allanice001
Copy link
Contributor

For OSX Mojave:
$ sudo softwareupdate -iva
Password:
softwareupdate: invalid option -- v
usage: softwareupdate [ ...]

** Manage Updates:
-l | --list List all appropriate update labels (options: --no-scan, --product-types)
-d | --download Download Only
-e | --cancel-download Cancel a download
-i | --install Install
... specific updates
-a | --all All appropriate updates
-R | --restart Automatically restart (or shut down) if required to complete installation.
-r | --recommended Only recommended updates
--background Trigger a background scan and update operation
--ignore ... Ignore specific updates
--reset-ignored Clear all ignored updates

** Other Tools:
--dump-state Log the internal state of the SU daemon to /var/log/install.log
--evaluate-products Evaluate a list of product keys specified by the --products option
--history Show the install history. By default, only displays updates installed by softwareupdate.
--all Include all processes in history (including App installs)

** Options:
--no-scan Do not scan when listing or installing updates (use available updates previously scanned)
--product-types Limit a scan to a particular product type only - ignoring all others
Ex: --product-types macOS || --product-types macOS,Safari
--products A comma-separated (no spaces) list of product keys to operate on.
--force Force an operation to complete. Use with --background to trigger a background scan regardless of "Automatically check" pref

--verbose		Enable verbose output
--help			Print this help

For OSX Mojave:
$ sudo softwareupdate -iva
Password:
softwareupdate: invalid option -- v
usage: softwareupdate <cmd> [<args> ...]

** Manage Updates:
	-l | --list		List all appropriate update labels (options:  --no-scan, --product-types)
	-d | --download		Download Only
	-e | --cancel-download		Cancel a download
	-i | --install		Install
		<label> ...	specific updates
		-a | --all		All appropriate updates
		-R | --restart		Automatically restart (or shut down) if required to complete installation.
		-r | --recommended	Only recommended updates
	--background		Trigger a background scan and update operation
	--ignore <label> ...	Ignore specific updates
	--reset-ignored		Clear all ignored updates

** Other Tools:
	--dump-state		Log the internal state of the SU daemon to /var/log/install.log
	--evaluate-products	Evaluate a list of product keys specified by the --products option 
	--history		Show the install history.  By default, only displays updates installed by softwareupdate.  
	--all 			Include all processes in history (including App installs) 

** Options:
	--no-scan		Do not scan when listing or installing updates (use available updates previously scanned)
	--product-types <type>		Limit a scan to a particular product type only - ignoring all others
		Ex:  --product-types macOS  || --product-types macOS,Safari 
	--products		A comma-separated (no spaces) list of product keys to operate on. 
	--force			Force an operation to complete.  Use with --background to trigger a background scan regardless of "Automatically check" pref 

	--verbose		Enable verbose output
	--help			Print this help
@johnwyles
Copy link

This is valid

Copy link

@RupGautam RupGautam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

osxprep.sh Outdated
@@ -10,11 +10,11 @@ while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
echo "------------------------------"
echo "Updating OSX. If this requires a restart, run the script again."
# Install all available updates
sudo softwareupdate -iva
sudo softwareupdate -ia

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sudo softwareupdate -ia
sudo softwareupdate -ia --verbose

osxprep.sh Outdated
@@ -10,11 +10,11 @@ while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
echo "------------------------------"
echo "Updating OSX. If this requires a restart, run the script again."
# Install all available updates
sudo softwareupdate -iva
sudo softwareupdate -ia
# Install only recommended available updates
#sudo softwareupdate -irv

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#sudo softwareupdate -irv
#sudo softwareupdate -ir --verbose

@donnemartin
Copy link
Owner

@kirk-clover appreciate the suggested changes, unfortunately the UI isn't allowing me to apply them. I'll apply manually.

@donnemartin donnemartin changed the title Update osxprep.sh Fix #84: Update softwareupdate verbose flag Feb 10, 2019
@donnemartin donnemartin merged commit 4bc1e95 into donnemartin:master Feb 10, 2019
@donnemartin
Copy link
Owner

@allanice001 @kirk-clover @RupGautam thank you!

rueberger added a commit to rueberger/dev-setup that referenced this pull request Mar 18, 2019
…donnemartin-master

* 'master' of git://github.com/donnemartin/dev-setup:
  Fix grammar in .dots script (donnemartin#87)
  Fix donnemartin#84: Update softwareupdate verbose flag (donnemartin#90)
  Update list of Quick Look plugins (donnemartin#77)
  Install Heroku CLI from heroku/brew/heroku (donnemartin#93)
  Replace betterzipql with betterzip (donnemartin#92)
  Remove redundant cask install from android.sh (donnemartin#75)
  Remove redundant cask install from brew.sh (donnemartin#74)
  Set blazingly fast keyboard repeat rate (donnemartin#76)
rueberger added a commit to rueberger/dev-setup that referenced this pull request Mar 18, 2019
* donnemartin-master:
  Fix grammar in .dots script (donnemartin#87)
  Fix donnemartin#84: Update softwareupdate verbose flag (donnemartin#90)
  Update list of Quick Look plugins (donnemartin#77)
  Install Heroku CLI from heroku/brew/heroku (donnemartin#93)
  Replace betterzipql with betterzip (donnemartin#92)
  Remove redundant cask install from android.sh (donnemartin#75)
  Remove redundant cask install from brew.sh (donnemartin#74)
  Set blazingly fast keyboard repeat rate (donnemartin#76)
paul-phan added a commit to paul-phan/dev-setup that referenced this pull request Mar 28, 2019
* 'master' of https://github.com/donnemartin/dev-setup:
  Fix grammar in .dots script (donnemartin#87)
  Fix donnemartin#84: Update softwareupdate verbose flag (donnemartin#90)
  Update list of Quick Look plugins (donnemartin#77)
  Install Heroku CLI from heroku/brew/heroku (donnemartin#93)
  Replace betterzipql with betterzip (donnemartin#92)
  Remove redundant cask install from android.sh (donnemartin#75)
  Remove redundant cask install from brew.sh (donnemartin#74)
  Set blazingly fast keyboard repeat rate (donnemartin#76)
vemoxy pushed a commit to vemoxy/dev-setup that referenced this pull request Feb 10, 2020
* https://github.com/donnemartin/dev-setup:
  Remove deprecated brew commands (donnemartin#98)
  Fix grammar in .dots script (donnemartin#87)
  Fix donnemartin#84: Update softwareupdate verbose flag (donnemartin#90)
  Update list of Quick Look plugins (donnemartin#77)
  Install Heroku CLI from heroku/brew/heroku (donnemartin#93)
  Replace betterzipql with betterzip (donnemartin#92)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants