How to completely disable GNOME’s file indexing and search tool Tracker

tracking device Is a file indexing and searching tool for Linux. Gnome uses it for certain features, so by default, Tracker is already installed in many Linux distributions.
The tool speeds up searches and enables full-text search in the Files application, enables metadata-based batch renaming to work in the Files application, and enables files in the Activities Overview And folder search. Some GNOME applications also rely on it (if you don’t have it, you can’t use it at all), such as music or photos. Without Tracker, you will lose these features, so consider this before completely disabling Tracker.
Although Tracker brings many useful features to the GNOME desktop, they can also affect performance in some cases. These performance issues are said to have been fixed, and Tracker is installed by default even in Ubuntu 19.04 (in older versions (eg Ubuntu 18.04) Tracker is not installed by default). However, there are still some users who encounter performance issues when using Tracker, or consider it to be too resource intensive. Those who do not want to use Tracker cannot remove the application in most cases because other packages depend on the application. This is an example from Ubuntu 19.04:

$ sudo apt remove tracker tracker-extract tracker-miner-fs

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gir1.2-clutter-gst-3.0 gir1.2-evince-3.0 libgsf-1-114 libgsf-1-common libmusicbrainz5-2
  libtagc0
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  gnome-shell-extension-desktop-icons gnome-sushi insync-nautilus nautilus
  nautilus-mediainfo nautilus-share tracker tracker-extract tracker-miner-fs ubuntu-desktop
  ubuntu-desktop-minimal
0 upgraded, 0 newly installed, 11 to remove and 0 not upgraded.
After this operation, 5,517 kB disk space will be freed.
Do you want to continue? [Y/n]

Therefore, trying to remove Tracker on Ubuntu 19.04 will cause Nautilus, Desktop Icons extension and ubuntu-desktop meta package to be removed. On the other hand, if more Gnome software is installed by default on Fedora, deleting Tracker will also delete Gnome boxes, documents, photos and totems, and 134 other software packages. The official way to disable Tracker on the Gnome desktop is to go to Settings -> Search, Then turn off the switch from the search settings title bar (top of the window). However, some users claim this will not disable it, so I decided to give it a try, then turn this option off and restart the system, tracker status It claims to have more than 100,000 files in its index and is currently indexing files. But if you want to try it out and see if it affects your system, how can you completely disable Tracker so that it no longer indexes any files and stops running any Tracker processes in the background? You can use the following command to block the Tracker systemd service to completely disable the service for the current user:

systemctl --user mask tracker-store.service tracker-miner-fs.service tracker-miner-rss.service tracker-extract.service tracker-miner-apps.service tracker-writeback.service

After that reset the tracker:

tracker reset --hard

And restart.
If you restart your system after blocking the Tracker service, you should no longer see any running Tracker processes running in the background. Still running tracker status And it doesn’t work, saying that the unit is blocked (this only happens if you used both the blocking and Tracker reset commands). You can also run tracker daemon Check the status of the Tracker daemons (Tracker store and Tracker miner)-they should all be listed as disabled / not running:Tracker daemon is disabled

You may receive a warning that some of these services do not exist-please ignore it. This is because e.g. not available on Ubuntu 19.04 tracker-miner-rss.service By default, there is one on Solus OS and Fedora and the latter does not tracker-miner-apps.service.
When the systemd service is blocked, its unit files are symbolically linked to /dev/null, Even if some other service tries to load the service, it cannot be loaded. This is better than disabling a service, because after disabling, if another service that depends on the service is started, the service may still start. Do you want to undo this change and enable Tracker? use:

systemctl --user unmask tracker-store.service tracker-miner-fs.service tracker-miner-rss.service tracker-extract.service tracker-miner-apps.service tracker-writeback.service

Then restart the system.
Pass r / Ubuntu (U / thegesuser), the solution I used before but I forgot to post on Linux Uprising.

Source

Sidebar