Disabling Spotlight under Mac OS X (updated)
If like me you're not a fan of Spotlight and want to disable it completely then you can hese simple steps.
I've provided steps for each of the following flavours of Mac OS X -- Tiger (10.4), Leopard (10.5), Snow Leopard (10.6), Lion (10.7) and Mountain Lion (10.8).
[updated] Added steps for Mac OS X Mavericks (10.9) and Yosemite (10.10).
In Mac OS X Tiger (10.4)
Disable Spotlight
- Launch terminal and type the following:
$ sudo nano /etc/hostconfig
- Locate the string
SPOTLIGHT=
using arrow keys - Change
SPOTLIGHT=-YES-
toSPOTLIGHT=-NO-
- Save
/etc/hostconfig
by pressing Control-O and the return key, next press Control-X to exit the text editor. - Next, you need to disable the index by typing the following in the terminal:
$ mdutil -i off /
- And to erase the current Spotlight index, type:
$ mdutil -E /
- Reboot your macbook pro. spotlight will be completeely disabled.
Re-Enable Spotlight
- Launch terminal and type the following:
$ sudo nano /etc/hostconfig
- Locate the string
SPOTLIGHT=
using arrow keys - Change
SPOTLIGHT=-NO-
toSPOTLIGHT=-YES-
- Save
/etc/hostconfig
by pressing Control-O and the return key, next press Control-X to exit the text editor. - and then type in the terminal:
$ mdutil -i on /
- Reboot, and spotlight is back as usual
In Mac OS X Leopard (10.5)
Disable Spotlight
To turn off Spotlight in Leopard
, use the following
- Move these two files to another safe location, and then reboot your mac
/System/Library/LaunchAgents/com.apple.Spotlight,plist /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
Re-Enable Spotlight
- Re-enable Spotlight by moving those files back to their original location, reboot, and Spotlight will function again
In Mac OS X Snow Leopard (10.6)
Disable Spotlight
- Disabling Spotlight in Snow Leopard is pretty easy, launch a terminal and type the following:
$ sudo mdutil -a -i off
Re-Enable Spotlight
- Re-enabling Spotlight in Mac OS X 10.6 is just as easy, just reverse the command to:
$ sudo mdutil -a -i on
In Mac OS X Lion (10.7) and Mac OS X Mountain Lion (10.8)
Disable Spotlight
- The primary method is using launchctl
$ sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
Re-Enable Spotlight
- Te gaurenteed way to reenable Spotlight is to reload it using launchctl:
$ sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
In Mac OS X Mavericks (10.9) and Mac OS X Yosemite (10.10)
Disable Spotlight
- The primary method is using launchctl
$ sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
Re-Enable Spotlight
- To re-enable Spotlight, just simply reload it using launchctl:
$ sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist