On Tue, 2012-01-31 at 11:03 -0500, Bill Nottingham wrote: > Miloslav Trmač (mitr@xxxxxxxx) said: > > > To be precise: > > > > > > [root@nostromo ~]# mv /bin /cow > > > [root@nostromo ~]# /cow/ln -s /cow /bin > > > [root@nostromo ~]# rpm -qf /cow/bash > > > bash-4.2.20-1.fc16.x86_64 > > > [root@nostromo ~]# rpm -qf /bin/bash > > > bash-4.2.20-1.fc16.x86_64 > > > > > > rpm should already handle this, no need for the provides. > > > > Elsewhere in this thread it was pointed out that yum doesn't handle it > > the same way. > > When calculating local on-system provides, it should - in fact, I'd be > surprised if it doesn't. Admins sometimes move directories around and > replace them with symlinks. I would be _very_ surprised if rpm let you install "foo" which requires /bin/bash ... if bash _only_ provided /usr/bin/bash and another package (or even the same one) provided /bin => /usr/bin. I'm not 100% sure what -qf is doing, but I'd guess it's just walking the basename list and seeing if anything matches the inode of what is passed in ... which is fine for query, to help the sysadmin. out, but I'd guess would be very expensive at install time. -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel