Use YUM To Install RPM with Dependencies

I love yum! YUM stands for Yellowdog Updater, Modified (what a name). It so beats the days of downloading a package, trying to compile, only to find out a required library is missing. Then download and install that and repeat until the whole thing gets installed. It determines all of the dependencies and installs them for you. Awesome!

You may, however, have just downloaded an RPM from a website and want to install it. You can use the normal way of doing:

# rpm -ivh percona-toolkit-2.2.7-1.noarch.rpm

You may still run into dependencies using this format.

So, can we utilize YUM to install a RPM we downloaded? Yes!

# yum --nogpgcheck localinstall percona-toolkit-2.2.7-1.noarch.rpm

I used the above command to install the Percona Toolkit. I downloaded the RPM and ran the above, and the toolkit installed perfectly!

Note: For a great resource on installing packages using RPM, check out “RPM Command: 15 Examples to Install, Uninstall, Upgrade, Query RPM Packages” from The Geek Stuff.

Posted in Linux Tagged with: , ,