How to Completely Disable ‘Tracker’ (File Indexing) in Ubuntu to Save CPU

Modern GNOME desktop environments (the default for Ubuntu) utilize a background service called “Tracker” (or Tracker Miners). This service acts as a continuous file indexer, silently crawling your hard drive in the background to catalog your documents, photos, and music. This is the technology that allows the GNOME search bar to instantly find files the moment you start typing.

While this instant search capability is convenient, the Tracker service is infamous for occasionally glitching out and consuming 100% of your CPU resources while attempting to index corrupted files or massive code directories (like node_modules). If you are running Ubuntu on an older laptop with a weak battery, or if you simply prefer using robust terminal search commands (like find or grep) rather than a graphical search bar, you can completely disable this background indexing service.

Masking the Tracker Services via Terminal

Because Tracker is heavily integrated into the desktop environment, you cannot simply uninstall it without breaking other GNOME dependencies. The safest and most effective way to kill it is to “mask” the systemd services so they can never start.

  1. Open a new Terminal window (Ctrl + Alt + T).
  2. You need to mask the three primary tracker daemons for your specific user account. Type the following command and press Enter:
    systemctl --user mask tracker-extract-3.service tracker-miner-fs-3.service tracker-miner-rss-3.service
    (Note: Depending on your exact version of Ubuntu, the number might be different, e.g., ‘tracker-miner-fs.service’ without the ‘3’. If the command above fails, try running it without the ‘-3’ suffix).
  3. You should see output confirming that symlinks have been created pointing to /dev/null. This means the system will effectively ignore any attempts to start these services.

Purging the Existing Database

Now that the service is disabled, you should delete the massive database it has already built to reclaim your hard drive space.

  1. In the terminal, type the following command to reset the database and press Enter:
    tracker3 reset -s -r
    (Again, if ‘tracker3’ is not found, try just ‘tracker reset -s -r’).
  2. Log out of your Ubuntu session and log back in (or simply reboot your computer).

Upon rebooting, the Tracker service will no longer launch. Your computer will run cooler, your CPU usage will drop, and your battery life will improve. However, remember that your desktop search bar will no longer be able to find local files; it will only find installed applications.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.