Re: elrepo problem?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 09/09/2014 12:25 PM, Les Mikesell wrote:
> Seems odd that with both the new and old glibc versions,
> rpm -q --whatprovides /usr/sbin/ldconfig
> says
> glibc-2.17-55.el7.x86_64
> or
> glibc-2.17-55.el7_0.1.x86_64
> yet yum doesn't think so.

RPM has been able to handle symlinks for a long time:

  $ rpm -ql kdelibs | grep libkunittest.so.4.13.3
  /usr/lib64/libkunittest.so.4.13.3
  $ rpm -qf /lib64/libkunittest.so.4.13.3
  kdelibs-4.13.3-1.fc20.x86_64

I presume that yum is querying RPM for information about installed
packages, causing the installed version of glibc to "automagically"
provide /usr/sbin/ldconfig.  Let's test:

  # ln -s /usr/sbin /foo
  # rpm -qf /foo/ldconfig
  glibc-2.17-55.el7_0.1.x86_64
  # yum provides /foo/ldconfig
  ...
  glibc-2.17-55.el7_0.1.x86_64 : The GNU libc libraries
  Repo        : @updates
  Matched from:
  Filename    : /foo/ldconfig

So yum has (and uses) more information about installed packages.

-- 
========================================================================
Ian Pilcher                                         arequipeno@xxxxxxxxx
-------- "I grew up before Mark Zuckerberg invented friendship" --------
========================================================================

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux