When I open up the AppStore, under updates, the application thinks that I need to update the same application several times. In this case Command Line Tools is listed several times in a row. How do I remove these multiple entries from the app store.
The log of your updates are available in:
~/Library/Application Support/App Store/updatejournal.plist
The simple solution is to clear the update logs by deleting the mentioned file.
Here is the guide to remove duplicate if you want to keep the update logs.
- Open Terminal.
updatejournal.plistby entering this line
plutil -convert xml1then drag the
updatejournal.plistfrom Finder into Terminal to expand the path, then press Return. Mine is the following:
plutil -convert xml1 ~/Library/Application\ Support/App\ Store/updatejournal.plist
~/Library/Application\ Support/App\ Store/updatejournal.plistwith your favorite text editor (TextEdit works fine).
Find the duplicate update logs. For example, mine is Command Line Tools (OS X 10.10). The point is to delete that entry which is inside the scope of
<dict>. So you should delete the content between
</dict>. Here is line I need to delete. Save the file.
<dict> <key>__isSoftwareUpdate</key> <true/> <key>installDate</key> <date>2014-10-17T09:55:17Z</date> <key>productKey</key> <string>031-08844</string> <key>release-notes</key> <string>Command Line Developer Tools for OS X 10.10</string> <key>title</key> <string>Command Line Tools (OS X 10.10)</string> <key>version</key> <string>6.1</string> </dict>
Convert the file back to binary1 by entering this line
plutil -convert binary1and drag the
updatejournal.plistfrom Finder, and press Return. Here is mine in Terminal:
plutil -convert binary1 ~/Library/Application\ Support/App\ Store/updatejournal.plist
Open Mac App Store and refresh the Updates section. The duplicate line should disappear. Remember to only delete one entry of duplicate file. Imagine that
plistas a spreadsheet with duplicate lines. Just delete one.
Feel free to leave question in comment if the tutorial is vague.
Try to clear App Store cache, reboot your Mac and check the App Store.
To clear the cache, open Terminal and copy and paste following command:
In the Finder window that will open, locate the
com.apple.appstore folder and move it to Trash.
Reboot your Mac.
I experienced the same problem but did not resolve it even by editing 'updatejournal.plist.'
A website which was written in Japanese provided a solution and it resolved the issue at last. I hope your problem will be resolved by this method.
http://qiita.com/hshimo/items/5bbc85bb98530c4ac591 (written in Japanese)
Please allow me to copy the essential points here. He said it was due to a Spotlight behavior (when Spotlight is disabled). To resolve this, we once need to re-enable Spotlight:
$ sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist $ sudo mdutil -E /
and re-disable it (if you need), after rebooted OS in my case, by:
$ sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
I hope it helps.
Just reboot your mac before updating.