There's a /usr/sbin/uninstall
command on my system. What does it do? There is no man
page, and running it says
- "
You must be root to run this tool.
", - and (after
sudo uninstall -h
) it says "URL is not uninstallable: -h
".
If I just run sudo uninstall
, it says "uninstall file_urls ...
"
I'm curious!
Best Answer
0942v8653's guess is right,
/usr/sbin/uninstall
is a command line uninstaller for Mac App Store apps.The file URL must be specified as parameter. In my tests the path to the application did it:
while non-Mac App Store apps couldn't be uninstalled:
Interestingly, although I ran the command with sudo it still asked me for administrator credentials:
/usr/bin/uninstall
uses the Uninstall private framework:just like the Dock:
That makes sense, because my tests showed that when an application is uninstalled inside Launchpad (by clicking the app’s delete button that appears when icons wiggle)
uninstall
is not used, but the Dock.