Which Terminal command to permanently hide updates in Apps store?

katbel

macrumors 6502
Original poster
Aug 19, 2009
265
124
I 'm using High Sierra and tried to use a terminal command to hide apps in the Mac App store I do not want to see among my updates but that I'm still using. Tried to hide the receipts, not working. After everything I've done , I restarted the iMac but no success
The Terminal command could be the wrong one, any idea of how to fix it?

Code:
sudo softwareupdate --ignore "xxx"
where xxx is the app name

The only thing that works is how to hide the annoying notification that popups everyday and where there is no:
"Stop Annoying Me" to click. Just Install now or remind me tomorrow sigh

I removed it this way

Paste the following command in the Terminal window and hit Enter on
the keyboard:
Code:
sudo mv /Library/Bundles/OSXNotification.bundle ~/Documents/
The command requires administrative privileges so you need to authenticate by providing your Mac user accountʼs password.
3) Restart the computer to have the change take effect.

To revert the command and receive upgrade notifications again, execute the following command in Terminal and restart your Mac so that changes take effect:
Code:
sudo mv ~/Documents/OSXNotification.bundle /Library/Bundles/
The Terminal method temporarily moves “OSXNotification.bundle” from its original location in the /Library/Bundles/ folder to your user accountʼs default Documents folder.
“OSXNotification.bundle” is a small Apple-signed bundle that controls macOS upgrade notifications. Reverting the change puts the file back in its original location.
 

katbel

macrumors 6502
Original poster
Aug 19, 2009
265
124
I tried the command on Mojave on another computer: it works to stop the notification about updating to Catalina but not to the apps I do not want to update. I wonder if it's not softwareupdate the process involved with Mac App Store. Is anyone knowing which process is? Not the App Store app.
 
Last edited:

katbel

macrumors 6502
Original poster
Aug 19, 2009
265
124
The Terminal method temporarily moves “OSXNotification.bundle” from its original location in the /Library/Bundles/ folder to your user accountʼs default Documents folder.
“OSXNotification.bundle” is a small Apple-signed bundle that controls macOS upgrade notifications. Reverting the change puts the file back in its original location.
I'm adding that works only if you compress the “OSXNotification.bundle” that you put in another folder and delete the non compressed one
I've been off notification since 1 week 😊 and I still have two apps to update. I prefer to have the badge since at least I know I have some updates in case I need it
 

bogdanw

macrumors 6502a
Mar 10, 2009
550
301
Try this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>PayloadContent</key>
    <array>
        <dict>
            <key>DisableSoftwareUpdateNotifications</key>
            <true/>
            <key>PayloadDescription</key>
            <string>Configures App Store settings</string>
            <key>PayloadDisplayName</key>
            <string>App Store settings</string>
            <key>PayloadIdentifier</key>
            <string>PayloadIdentifier2</string>
            <key>PayloadOrganization</key>
            <string></string>
            <key>PayloadType</key>
            <string>com.apple.appstore</string>
            <key>PayloadUUID</key>
            <string>PayloadUUID1</string>
            <key>PayloadVersion</key>
            <integer>1</integer>
        </dict>
    </array>
    <key>PayloadDescription</key>
    <string>Disable Software Update Notifications</string>
    <key>PayloadDisplayName</key>
    <string>Disable Software Update Notifications</string>
    <key>PayloadIdentifier</key>
    <string>PayloadIdentifier3</string>
    <key>PayloadOrganization</key>
    <string>Company Name</string>
    <key>PayloadScope</key>
    <string>System</string>
    <key>PayloadType</key>
    <string>Configuration</string>
    <key>PayloadUUID</key>
    <string>PayloadUUID2</string>
    <key>PayloadVersion</key>
    <integer>1</integer>
</dict>
</plist>

Save it as .mobileconfig and install it. It will show up in System Preferences - Profiles like this

DisSUN.jpg


It disables App Store notifications for software updates, but not the Dock App Store badge.
 
  • Love
Reactions: katbel

katbel

macrumors 6502
Original poster
Aug 19, 2009
265
124
Try this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>PayloadContent</key>
    <array>
        <dict>
            <key>DisableSoftwareUpdateNotifications</key>
            <true/>
            <key>PayloadDescription</key>
            <string>Configures App Store settings</string>
            <key>PayloadDisplayName</key>
            <string>App Store settings</string>
            <key>PayloadIdentifier</key>
            <string>PayloadIdentifier2</string>
            <key>PayloadOrganization</key>
            <string></string>
            <key>PayloadType</key>
            <string>com.apple.appstore</string>
            <key>PayloadUUID</key>
            <string>PayloadUUID1</string>
            <key>PayloadVersion</key>
            <integer>1</integer>
        </dict>
    </array>
    <key>PayloadDescription</key>
    <string>Disable Software Update Notifications</string>
    <key>PayloadDisplayName</key>
    <string>Disable Software Update Notifications</string>
    <key>PayloadIdentifier</key>
    <string>PayloadIdentifier3</string>
    <key>PayloadOrganization</key>
    <string>Company Name</string>
    <key>PayloadScope</key>
    <string>System</string>
    <key>PayloadType</key>
    <string>Configuration</string>
    <key>PayloadUUID</key>
    <string>PayloadUUID2</string>
    <key>PayloadVersion</key>
    <integer>1</integer>
</dict>
</plist>

Save it as .mobileconfig and install it. It will show up in System Preferences - Profiles like this

View attachment 894696

It disables App Store notifications for software updates, but not the Dock App Store badge.
Thanks a lot! You should get the Oscar for best Terminal solutions 😊
Should I put the “OSXNotification.bundle” back and use just this?
 

chrfr

macrumors G3
Jul 11, 2009
8,609
2,794
Thanks again! Profiles can be made just for Catalina I imagine or can you make a profile for High Sierra or Mojave as well?
That same profile works for pretty much any recent version of macOS. Configuration profiles in general have been supported in macOS since around 10.7, if I am remembering correctly.
 
  • Like
Reactions: katbel

bogdanw

macrumors 6502a
Mar 10, 2009
550
301
Profiles can be made just for Catalina I imagine or can you make a profile for High Sierra or Mojave as well?
I've installed the same Disable Software Update Notifications profile in Catalina and Mojave.
While profiles can be installed on various versions of macOS and iOS, some values are not available for all or are deprecated.
In this case, according to Apple, DisableSoftwareUpdateNotifications is "Available in macOS 10.10 and later."
https://developer.apple.com/documentation/devicemanagement/appstore
 
  • Like
Reactions: katbel

katbel

macrumors 6502
Original poster
Aug 19, 2009
265
124
I've installed the same Disable Software Update Notifications profile in Catalina and Mojave.
While profiles can be installed on various versions of macOS and iOS, some values are not available for all or are deprecated.
In this case, according to Apple, DisableSoftwareUpdateNotifications is "Available in macOS 10.10 and later."
https://developer.apple.com/documentation/devicemanagement/appstore
I just tried on High Sierra but I got an error using Textedit. I believe because of the format

Then I thought BBEdit should work better (saved with Line Breaks UNIX - Encoding: Unicode) changed after to mobileconfig and it works: Thanks a lot!

BTW Yesterday after one week of no notifications , even without the bundle , I got oneo_O
Let's see with the profile if High Sierra will behave