[pacman-dev] pacman files database operations
bluewind at xinu.at
Fri Jun 19 18:32:23 UTC 2015
On 18.06.2015 14:46, Allan McRae wrote:
> $ pacman -Fl abs
> abs /etc/
> abs /etc/abs.conf
Does this come with -q to disable the prepended package name in the output?
What happens if the package exists in multiple repos? Will I get the
list of only one of them or all of them?
Can I use -Fl testing/abs to get the list of the testing package only?
> Check file ownership using sync databases:
> $ pacman -Fo /usr/bin/pacman
> /usr/bin/pacman is owned by pacman 4.2.1-1
-q to only output the packages that own the path?
> Search file lists:
> $ pacman -Fs libpng.so
> libpng 1.6.16-1: /usr/lib/libpng.so
> darktable 1.6.7-1: /usr/lib/darktable/plugins/imageio/format/libpng.so
> lib32-libpng 1.6.16-1: /usr/lib32/libpng.so
> Search with regexes:
> $ pacman -Fsx kcm.*print.*\.so
> print-manager 15.04.2-1: /usr/lib/qt/plugins/kcm_printer_manager.so
> kmymoney 4.7.2-1: /usr/lib/kde4/kcm_kmm_printcheck.so
> Anything else that is worth implementing before I do the much needed
> rebase on that branch?
case (in)sensitive search?
Also why is the output format different between -Fl, -Fo and -Fs? I
think they should probably all use the same one (the one with "$pkgname
$pkgver: $file") so it's easier to parse. If this is implemented you can
ignore the -q wishes above.
I see that the output is similar to -Ql and -Qo, but I think it's still
better to use a more verbose and easier to parse (e.g. `cut -d\ -f 2-`)
format. Especially with regard to the possibility of a package being in
multiple repositories which can't happen with -Q.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 801 bytes
Desc: OpenPGP digital signature
More information about the pacman-dev