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