22
March
2024
0:15

Removing the tracker-miner-fs package and service

22 March 2024 0:15

After installing the package update, I discovered the tracker-miner-fs service, which was unknown to me.

What kind of service is this - tracker-miner

They write on Reddit that this service is used to index file metadata, that it is a well-known service for Gnome Nautilus.

Symptoms

The tracker-miner-fs package (2.3.3-2ubuntu0.20.04.2) is being configured...
A new version of the configuration file /etc/xdg/autostart/tracker-miner-fs.desktop is installed...
Created symlink /etc/systemd/user/gnome-session.target.wants/tracker-miner-fs.service → /usr/lib/systemd/user/tracker-miner-fs.service.

As you can see, a new service was added to autostart /etc/xdg/autostart/ during the update.

cat /etc/xdg/autostart/tracker-miner-fs.desktop
[Desktop Entry]
Name=Tracker File System Miner
Comment=Crawls and processes files on the file system
Icon=
Exec=/usr/libexec/tracker-miner-fs
Terminal=false
Type=Application
Categories=Utility;
X-GNOME-Autostart-enabled=true
X-GNOME-HiddenUnderSystemd=true
X-KDE-autostart-after=panel
X-KDE-StartupNotify=false
X-KDE-UniqueApplet=true
NoDisplay=true
OnlyShowIn=GNOME;KDE;XFCE;X-IVI;Unity;
X-systemd-skip=true
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=tracker
X-GNOME-Bugzilla-Component=Miners
X-GNOME-Bugzilla-Version=2.3.3
X-Ubuntu-Gettext-Domain=tracker-miners

A funny feature of the tracker-miner-fs service is that measures have been taken to make it invisible (NoDisplay=true), inaccessible to systemd (X-systemd-skip=true) and calls itself a file system tracker: "X-GNOME-Bugzilla-Product=tracker".

This tracker and file system miner is visible only from the following shells: GNOME; KDE; XFCE; X-IVI; Unity.
I have a different desktop on runtu LITE - LXDE, so the tracker is completely hidden.

What is tracker-miner-fs for?

According to the information, tracker-miner-fs is used to index files on disk and their metadata for the Nautilus file manager. That is, it is the equivalent of the "Windows Search" service, but for Linux.

Dependencies

When you try to delete tracker-miner-fs*, dependencies pop up

gnome-shell-extension-desktop-icons
nautilus

If you don't use the Nautilus file manager, you can safely remove the package.

Removing the tracker-miner-fs package

sudo apt purge tracker-miner-fs

Result:
Do you want to continue? [Y/n]

(Reading the database...there are currently 431383 files and directories installed.)
Uninstalling gnome-shell-extension-desktop-icons (20.04.0-3~ubuntu20.04.6) ...
Nautilus (1:3.36.3-0ubuntu1.20.04.2) is being removed...
Tracker-miner-fs (2.3.3-2ubuntu0.20.04.2) is being removed...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.64.6-1~ubuntu20.04.6) ...
Processing triggers for libglib2.0-0:i386 (2.64.6-1~ubuntu20.04.6) ...
Processing triggers for man-db (2.9.1-1) ...
Triggers for desktop-file-utils (0.24-1ubuntu3) are processed...
(Reading the database...there are currently 431341 files and directories installed.)
The configuration files of the tracker-miner-fs package (2.3.3-2ubuntu0.20.04.2) are being cleaned...
The configuration files of the nautilus package are cleaned (1:3.36.3-0ubuntu1.20.04.2) ...

The unnecessary tracker-miner-fs component has been successfully removed from the operating system.



Related publications