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

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?

2 Answers

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.

1

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

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like