How To Install plocate on Fedora 36
Introduction
In this tutorial we learn how to install plocate on Fedora 36.
What is plocate
plocate is a locate(1) based on posting lists, giving much faster searches on a much smaller index. It is a drop-in replacement for mlocate in nearly all aspects, and is fast on SSDs and non-SSDs alike.
We can use yum or dnf to install plocate on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install plocate.
Install plocate on Fedora 36 Using dnf
Update yum database with dnf using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install plocate using dnf by running the following command:
sudo dnf -y install plocate
Install plocate on Fedora 36 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install plocate using yum by running the following command:
sudo yum -y install plocate
How To Uninstall plocate on Fedora 36
To uninstall only the plocate package we can use the following command:
sudo dnf remove plocate
plocate Package Contents on Fedora 36
/etc/updatedb.conf
/usr/bin/locate
/usr/bin/plocate
/usr/lib/.build-id
/usr/lib/.build-id/1b
/usr/lib/.build-id/1b/cfdd3d9437f317731059419533adb86b503b10
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/d1b91c14192c470cc52e9c801700f81259cd99
/usr/lib/.build-id/83
/usr/lib/.build-id/83/e1cb7df1ea1349691a8b7e0675f126f5fc1204
/usr/lib/systemd/system/plocate-updatedb.service
/usr/lib/systemd/system/plocate-updatedb.timer
/usr/lib/sysusers.d/plocate.conf
/usr/sbin/plocate-build
/usr/sbin/updatedb
/usr/share/doc/plocate
/usr/share/doc/plocate/README
/usr/share/licenses/plocate
/usr/share/licenses/plocate/COPYING
/usr/share/man/man1/locate.1.gz
/usr/share/man/man1/plocate.1.gz
/usr/share/man/man5/updatedb.conf.5.gz
/usr/share/man/man8/plocate-build.8.gz
/usr/share/man/man8/updatedb.8.gz
/var/lib/plocate
/var/lib/plocate/CACHEDIR.TAG
/var/lib/plocate/plocate.db
References
Summary
In this tutorial we learn how to install plocate on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).