Ralph Shumaker wrote:
Chris Grau wrote:
It does appear to be a Fedora vs. RHEL issue. No RPM package actually
provides g++. Instead, it provides /usr/bin/g++. On RHEL's version of
Yum, the provides command appears to use an implied glob pattern of
*g++*. However, Fedora's version of Yum only uses the pattern given as
an argument. Based on what I know of Yum's development, I'd guess that
was a change that happened in Yum 3.1+. In Fedora, either of the
following will work.
$ sudo yum provides /usr/bin/g++
$ sudo yum provides '*/g++'
The second is useful when you don't actually know where the file will be
installed. Both should be run as root, since the file cache will need
to be downloaded and cached (why Yum can't cache to a temporary
location, I don't know).
Thank you for that detail Chris.
# yum whatprovides '*/g++'
Not "yum whatprovides...", but yum "provides..."
^^^^
The command as given by Chris works as he predicted on my F5 box:
[EMAIL PROTECTED] ~]# yum provides /usr/bin/g++
Loading "fastestmirror" plugin
Loading "installonlyn" plugin
Searching Packages:
Setting up repositories
[yadda, yadda, yadda]
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
gcc-c++.i386 4.1.0-3 core
Matched from:
/usr/bin/g++
gcc-c++.i386 4.1.1-51.fc5 updates
Matched from:
/usr/bin/g++
Although neither form of the command seems to finish - i.e. it hangs
until a <^c> exit.
--
Best Regards,
~DJA.
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list