To find out how to install a certain command or utility via yum you can use list or the “whatprovides” option as shown below.
This is an example of using yum with the list option to find any packages with “send” in the name.
- yum list *SEND*
Using this command will provide results like the below.
- [root@server ~]# yum list *SEND*
- Loading "installonlyn" plugin
- Setting up repositories
- Reading repository metadata in from local files
- Available Packages
- mgetty-sendfax.x86_64 1.1.33-9.fc6 base
- nautilus-sendto.x86_64 0.7-5.fc6 base
- nautilus-sendto-bluetooth.x86_64 0.7-5.fc6 base
- perl-Email-Send.noarch 2.192-2.el5.rf rpmforge
- perl-Jabber-SimpleSend.noarch 0.03-1.el5.rf rpmforge
- perl-Mail-SendVarious.noarch 0.3-1.el5.rf rpmforge
- perl-Mail-Sender.noarch 0.8.16-1.el5.rf rpmforge
- perl-Mail-Sendmail.noarch 0.79-1.2.el5.rf rpmforge
- perl-Net-SenderBase.noarch 1.01-1.el5.rf rpmforge
- perl-X11-SendEvent.noarch 1.3-1.2.el5.rf rpmforge
- sendip.x86_64 2.5-2.el5.rf rpmforge
- sendmail.x86_64 8.13.8-2.el5 base
- sendmail-cf.x86_64 8.13.8-2.el5 base
- sendmail-devel.x86_64 8.13.8-2.el5 base
- sendmail-devel.i386 8.13.8-2.el5 base
- sendmail-doc.x86_64 8.13.8-2.el5 base
If you are unable to provide the command or utility you are looking for using the list option then try whatprovides as shown below when trying to install iostat.
- yum whatprovides iostat
The output will look like the below where after searching through it you will realize that the sysstat package includes iostat. So use yum to install sysstat and you will now have the iostat command.
- [root@server ~]# yum whatprovides iostat | more
- Loading "installonlyn"