Skip to content

randomdude999/pkgfile-tiny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pkgfile-tiny

this is a version of pkgfile which is much more limited, but also much faster.

the original pkgfile has to scan the entire files database for each query. this takes a few hundred milliseconds even if the database is already cached in RAM. this annoyed me, as it meant my terminal locked up for up to a second every time i typo'd a command. this version works just as well when using it as a command-not-found handler, but it has none of the other features of pkgfile. notably, it filters out non-executable files while building the database, as a way to save space (otherwise, the community files DB would be a few hundred MB).

usage: pkgfile_tiny with no arguments updates the database. the database location is hardcoded in main.rs. pkgfile_tiny <query> outputs the packages that contain a binary with the specified basename, i.e. the exact same thing as pkgfile -v -b <query>.

About

minimal version of pkgfile

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages