Reading around about updatedb.service and man-db.service I found some saying that updatedb.service can be disabled if the user is not using “locate” to find files!
I read this thread at the Arch Linux forums where the user says “So in the absence of a real need for the locate command uninstalling the mlocate package looks like the easy way to work around the problem on my machine.”
As it is something related to booting my system, I will never uninstall something (“uninstalling the mlocate package” as the user said) before hearing from the experts here.
I don’t even know what “mlocate” or “updatedb.service” are!
I am on KDE Plasma, BTRFS, systemd-boot, defaulting to LTS kernel and have the default kernel installed as well. I installed and using Recoll to search for my files by content.
Would you agree with me doing:
yay -Rc mlocate
to save my self all this time it takes for booting?
What about man-db.service?
I would be booting in like 2 or 3 seconds then!
I am just trying to get the most out of my system. (I may sound naughty I know, but I am asking experienced users for permission before I do naughty things)
remove what you not use is the best… it will not touch the state of it if you may want to use it in the future… you may long time forget about you disable it… or mask it and wonder why the heck it is not working…
I remember adding mlocate to the packages a long time ago … not sure if it has the timer by that time… as usually you will need to update the database manually anyway to find latest changes in case you have a case you need to find the needle in the haystack…
When i start with arch it was what everyone using so i was adding it… could be we remove it from default install anyway… as if you do not know about and/or you do not use it it is doing nothing aside from delay on boot from time to time
as it is a search engine that uses its own database of files you need to have an up to date database if you need to search for files that may changed currently… as an example:
i try to remove all grub stuff and search for leftovers like so: locate grub
it finds a lot of stuff i want to remove and i want to see if i catched them alls i rerun locate grub
and if i do not update the database it will show the same files as before also the ones i already removed… but if i run the sudo updatedb it will only show the files i do not catch to remove
antiword (optional) - for msword
aspell-en (optional) - English stemming support
catdoc (optional) - for ms excel and powerpoint
djvulibre (optional) - for djvu
id3lib (optional) - for mp3 tags support with id3info
libxslt (optional) - for XML based formats (fb2,etc)
perl-image-exiftool (optional) - EXIF data from raw files
poppler (optional) - for pdf
pstotext (optional) - for postscipt
python-lxml (optional) - indexing spreadsheets
python-mutagen (optional) - Audio metadata
python-pychm (optional) - CHM filter
unrtf (optional) - for RTF
unzip (optional) - for the OpenOffice.org documents
i do not know this one but mlocate is no dependency and not optional also…
This service drives me mad because IMO it unnecessarily extends boot time (I remember waiting nearly 1 min on an SSD with 5 GiB per second random read and 6 core CPU) and the task of updating manual database suits better as a pacman post transaction hook instead of boot time.