Estava procurando exatamente o mesmo, encontrou uma solução brilhante aqui: link
Ao instalar o pkgtools, mais informações são exibidas:
(2/2) installing pkgtools
- Make sure to run pkgfile --update before use
- pkgfile includes a "command not found" hook for both zsh and bash.
This will automatically run pkgfile whenever you run
a command which the shell cannot find. If you want
this functionality, set CMD_SEARCH_ENABLED to 1 in
/etc/pkgtools/pkgfile.conf (or per-user by copying
that file to ${XDG_CONFIG_HOME}/pkgtools/pkgfile.conf), then
in your current shell run:
source /etc/profile
- An entry has been placed in /etc/cron.daily to run pkgfile --update
If you do not want this functionality, set UPDATE_CRON=0 in /etc/pkgtools/pkgfile.conf