You are not logged in.
If I issue the following command (after refreshing the files database: "pacman -Fy"):
pacman -Fsx 'bin/bash'I get no result, it seems that I can search on file names but not on files path. Is that normal? Can I search on file paths? The pkgfile command (that I thought was rendered obsolete by the -F option of pacman), seems to work as expected:
pkgfile -srv 'bin/bash'output the expected result.
Last edited by olive (2018-06-23 05:41:11)
Offline
FILE OPTIONS (APPLY TO -F) -s, --search Search package file names for matching strings.
This seems to be the intended behavior. You can ask the devs about adding an option to search for full paths via the pacman-dev mailing list.
Note that you can grep the output of pacman -Fl as a workaround:
$ pacman -Fl | grep -e bin/bash
bash usr/bin/bash
bash usr/bin/bashbug
bashburn usr/bin/bashburn
bashrun usr/bin/bashrun
ejabberd usr/lib/eredis-1.0.8/ebin/basho_bench_driver_eredis.beam
ejabberd usr/lib/eredis-1.0.8/ebin/basho_bench_driver_erldis.beam
jake usr/lib/node_modules/jake/bin/bash_completion.shMy Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Thanks! I simply (stupid me) didn't notice the "-Fl" option that do what I want together with grep.
Offline
If you know the *full* path you can use -Fo, but also if you want a much faster search of partial path including the filename, you could do something like this:
pacman -Fl $(pacman -Fsq bash) | grep bin/bashOf course if you are only looking within the local database this is even much much faster:
grep -F bin/bash /var/lib/pacman/local/*/filesLast edited by Trilby (2018-06-23 11:23:06)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Yeah... this is why I prefer the more powerful functionality offered by pkgfile, which is not in fact deprecated or rendered obsolete just because pacman -F offers a limited emulation built into pacman itself.
Use pkgfile. Not only does it have more functionality and options, it's also faster. ![]()
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline