Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to use yum to install a RPM file in Red Hat Linux?

Since I don't have the Internet access from this Linux I can not do wget and follow the process.

So all that I have now is a rpm file. How do I install it?

share|improve this question

migrated from Feb 27 '13 at 12:06

This question came from our site for professional and enthusiast programmers.

Yes, it is possible to install a single - already downloaded file - via YUM

yum install RPM-FILENAME.rpm from the directory you have the package downloaded to.

share|improve this answer
This has the benefit that if the package requires extra dependencies, they will be found, downloaded, and installed; while a plain rpm will just complain that the dependencies are missing. You can set up local repos (e.g. from the installation DVD) if you don't have 'net access. – vonbrand Mar 1 '13 at 2:51

rpm -ivh file.rpm

is the command for you. The benefit of yum is that it will resolve dependencies for you and also install dependencies along with the concerned application. But you need to define the path of software resources in /etc/yum.repos.d in a .repo file

share|improve this answer

You must log in to answer this question.