How to Remove old updates from Software Update service

Running a 10.10.2 OS X Server and have a lot of old Update files I need to get rid of. I have followed instructions on...


Mac OS X Server 10.4 or later: Removing old updates from Software Update Server


...but getting this error...


No such file or directory


...when typing...


grep swupd /etc/swupd/com.apple.server.swupdate.plist > ~/Desktop/update_list.txt


Any help would be appreciated, thanks.

Posted on Feb 16, 2015 3:16 AM

Reply
6 replies

Jun 8, 2015 8:07 AM in response to KRIBkia

This worked for me:


sudo swupd_syncd -removeDeprecated

Also have a look at man swupd_syncd

USAGE
swupd_syncd
-h
swupd_syncd
[-ver |-appleversion ] swupd_syncd -sync
swupd_syncd
-showDeprecated
swupd_syncd
-removeDeprecated
swupd_syncd
-recoverPurged
swupd_syncd
-checkRequests
swupd_syncd
-listCatalogs
swupd_syncd
[-disable |-enable |-mirror ]<PRODUCT>OPTIONS
-h displays this message
(may not be combined with other options)
-ver displays program version information
-sync force refresh of local content from master software update server. (Thisis the default action ifno arguments are given.)
-showDeprecated
displays a list of all deprecated software products
-removeDeprecated
delete all deprecated software products from the catalog
-recoverPurged
restore lost catalog items
from downloaded files
-checkRequests
process pending service admin requests
.
-listCatalogs
display all known product catalog
URLs.
-disable <PRODUCT>
-enable <PRODUCT>
-mirror <PRODUCT> perform the requested action for the selected product, where PRODUCT is an product indentifier (e.g.061-2345)RETURNS
Onexit, the process returns 0ifno errors or-1if the sync operation failed [1]NOTES
[1]If the program returns errors, consult the swupd_syncd log file
(/var/log/swupd/swupd_sync_log)for more details.
[2]Additional debug logging can be enabled with the following command: sudo defaults write /Library/Preferences/com.apple.SUServer enableDebugLogging -bool[ yes |no] (default: debug log message are disabled) Detailed sources for any log message can be enabled with the following command: sudo defaults write /Library/Preferences/com.apple.SUServer showLogSource -bool[ yes |no] (default: source information is disabled)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to Remove old updates from Software Update service

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.