mirror of
https://github.com/KDE/kde-linux.git
synced 2025-12-23 16:08:29 -05:00
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:
@@ -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
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user