[pacman-dev] Confused about -Fo
Dave Reisner
d at falconindy.com
Sat Jan 30 13:30:50 UTC 2016
On Jan 30, 2016 08:27, "Stefan Tatschner" <rumpelsepp at sevenbyte.org> wrote:
>
> On 30.01.2016 14:23, Stefan Tatschner wrote:
> > I am quite exited that pacman 5.0 has been removed and finally hooks are
> > there. Good job folks!
> >
> > But I am a bit confused about the new -F feature. What exactly are the
> > advantages of e.g. -Fo over -Qo, or -Fl over -Ql? I don't understand
> > what is the purpose of this duplication; furthermore the output is not
> > consistent and even gives different results.
Compare -Q and -F on a file owned by a package which isn't installed.
> >
> >
> > ~ $ pacman -Fo /usr/bin/ls
> > usr/bin/ls is owned by core/coreutils 8.24-1
> >
> > ~ $ pacman -Qo /usr/bin/ls
> > /usr/bin/ls is owned by coreutils 8.25-1
> >
> >
> > ~ $ pacman -Fl coreutils
> > coreutils usr/
> > coreutils usr/bin/
> > coreutils usr/bin/[
> > coreutils usr/bin/base64
> > coreutils usr/bin/basename
> > [...]
> >
> > $ pacman -Ql coreutils
> > coreutils /usr/
> > coreutils /usr/bin/
> > coreutils /usr/bin/[
> > coreutils /usr/bin/base32 <-- missing in -Fl
> > coreutils /usr/bin/base64
> > coreutils /usr/bin/basename
> > [...]
> >
> >
> > ~ $ pacman -Fl coreutils | grep base
> > coreutils usr/bin/base64
> > coreutils usr/bin/basename
> > coreutils usr/share/man/man1/base64.1.gz
> > coreutils usr/share/man/man1/basename.1.gz
> >
> > ~ $ pacman -Ql coreutils | grep base
> > coreutils /usr/bin/base32
> > coreutils /usr/bin/base64
> > coreutils /usr/bin/basename
> > coreutils /usr/share/man/man1/base32.1.gz
> > coreutils /usr/share/man/man1/base64.1.gz
> > coreutils /usr/share/man/man1/basename.1.gz
>
> I would like to add, that -Fo does not follow symlinks; -Qo does:
>
> ~ $ pacman -Qo /bin/ls
> /usr/bin/ls is owned by coreutils 8.25-1
>
> ~ $ pacman -Fo /bin/ls
> ~ $
>
> ~ $ pacman -Fo /usr/bin/ls
> usr/bin/ls is owned by core/coreutils 8.24-1
>
> Stefan
More information about the pacman-dev
mailing list