Slackware HowTo

Use slackpkg file-search on Slackware

Quickly find which package contains a file before installing, reinstalling, or removing it.

1. When to use it

Useful when you know the binary or library name but do not remember the corresponding Slackware package.

slackpkg | file-search | pkglist | package lookup | file search

2. Base setup

slackpkg update
slackpkg file-search /usr/bin/rsync
slackpkg search rsync

Adjust host names, IPs, interfaces, paths, and versions to the real system before making the change persistent.

3. Quick verification

ls /var/lib/slackpkg/pkglist | head
grep -R "usr/bin/rsync" /var/lib/slackpkg/pkglist | head

Confirm that the output matches the expected state before considering the intervention complete.

4. Operational notes

It is a simple but valuable step before reinstalling packages or doing aggressive cleanup.

Quick checklist

[ ] Steps completed\n[ ] Config updated\n[ ] Tests executed\n[ ] Rollback ready\n[ ] Logs checked

Back to Linux HowTo