feat: preinstall plocate for faster file locating

plocate is a fast and efficient file locating tool that improves upon
the traditional locate command. Database is updated daily or on demand
by running `sudo updatedb`, then users can quickly find files using
`locate <filename>` -- much faster than using `find` across the
filesystem.
This commit is contained in:
Kristen McWilliam
2025-12-18 15:36:36 -05:00
parent f30629c87b
commit e33e4084b6
2 changed files with 9 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
#
# SPDX-FileCopyrightText: 2024 Harald Sitter <sitter@kde.org>
# SPDX-FileCopyrightText: 2025 Kristen McWilliam <kristen@kde.org>
# Modern CLI tools!
@@ -32,6 +34,7 @@ Packages=alsa-utils # alsamixer and other useful audio debugging tools
nvidia-prime # prime-run command
nvtop # Fancy GPU monitoring
openssh
plocate # Fast file locating
powertop
procs
ripgrep

View File

@@ -160,6 +160,12 @@ command_not_found_handle () {
}
EOF
# Configure plocate to index bind mounts (needed on BTRFS)
# See: https://wiki.archlinux.org/title/Locate#Btrfs
if [ -f /etc/updatedb.conf ]; then
sed -i 's/^PRUNE_BIND_MOUNTS = "yes"/PRUNE_BIND_MOUNTS = "no"/' /etc/updatedb.conf
fi
# Clean up final remnants of the build process
rm -rf \
/buildroot \