[pacman-dev] pacman files database operations

Allan McRae allan at archlinux.org
Fri Jun 19 23:18:29 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
> 
> Does this come with -q to disable the prepended package name in the output?
> 

Yes

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

I can add that.

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

That works.

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

All have -q options so this is moot.  I will deal with the multiple repo
issue.

A


More information about the pacman-dev mailing list