[pacman-dev] pacman files database operations

Allan McRae allan at archlinux.org
Sat Jun 20 07:31:08 UTC 2015


On 20/06/15 04:32, Florian Pritz wrote:
> On 18.06.2015 14:46, Allan McRae wrote:
>> $ pacman -Fl abs
>> abs /etc/
>> abs /etc/abs.conf
> 
> What happens if the package exists in multiple repos? Will I get the
> list of only one of them or all of them?

It now only prints the first occurance.

> Can I use -Fl testing/abs to get the list of the testing package only?

Implemented.


>> 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?

I am not interested in doing this...

> 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.

-Fo and -Fs now always show the repo for the results.

$ pacman -Fs pacman
core/pacman 4.2.1-1
    usr/bin/pacman
    usr/share/bash-completion/completions/pacman
extra/xscreensaver 5.32-1
    usr/lib/xscreensaver/pacman

$ pacman -Fo /usr/lib/libmpfr.so
/usr/lib/libmpfr.so is owned by testing/mpfr 3.1.3-1
/usr/lib/libmpfr.so is owned by core/mpfr 3.1.2.p11-1

A


More information about the pacman-dev mailing list