FC9: can't find iostat command
Aaron Konstam
akonstam at sbcglobal.net
Fri Aug 8 21:30:16 UTC 2008
On Fri, 2008-08-08 at 19:02 +0100, Stewart Williams wrote:
> Laszlo BERES wrote:
> > jeanpca at free.fr wrote:
> >
> >> [root at bin]# rpm -qa | grep sysstat
> >> [root at bin]#
> >
> > The above should only work when the sysstat package is installed.
> >
> > root at blondie ~]# yum whatprovides "*/iostat"
> > Loaded plugins: fastestmirror, refresh-packagekit
> > Loading mirror speeds from cached hostfile
> > * livna: ftp-stud.fht-esslingen.de
> > * fedora: mirror.karneval.cz
> > * updates: mirror.karneval.cz
> > * spacewalk: spacewalk.redhat.com
> > filelists.sqlite.bz2
> > | 331 kB
> > 00:00
> > sysstat-8.0.4-3.fc9.i386 : The sar and iostat system monitoring commands
> > Matched from:
> > Filename : /usr/bin/iostat
> >
> > munin-node-1.2.5-4.fc9.noarch : Network-wide graphing framework (node)
> > Matched from:
> > Filename : /usr/share/munin/plugins/iostat
> >
> > sysstat-8.0.4-4.fc9.i386 : The sar and iostat system monitoring commands
> > Matched from:
> > Filename : /usr/bin/iostat
> >
> > munin-node-1.2.5-5.fc9.noarch : Network-wide graphing framework (node)
> > Matched from:
> > Filename : /usr/share/munin/plugins/iostat
> >
> >
>
> I am intregued by the "*/" in your yum command. Is that to make yum
> match the filename on it's absolute path?
>
> The reason I ask this is many times I would like to install a certain
> program, but can't remember what package provides it. So I run:
>
> # yum whatprovides <program> (e.g. sar)
You must the complete path to the program. iosata will not work.. You
need to use: yum whatprovides /usr/bin/iostat
The name joe\* in a yum command will match any rpm whose name starts
with joe.
>
> And more often or not it never matches any package, even though I know
> damn well it's in the repo somewhere. I usually google to find out the
> answer in the end.
>
--
=======================================================================
Happiness is a positive cash flow.
=======================================================================
Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam at sbcglobal.net
More information about the users
mailing list