System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Install an rpm with all its dependencies in RHEL5

 
GnanaShekar
Regular Advisor

Install an rpm with all its dependencies in RHEL5

Hi,

Please suggest how to install an rpm and all its dependencies.
As far as I know, we can use the "rpm -ivh --aid " command.
However this does not seem to work on RHEL5.
I can use the up2date command to do this, but would like to use the local nfs repository of all the rpms instead.
On earlier version of Redhat, after installing rpmdb-redhat package we were able to use the --aid rpm option to install a package with all its dependencies.
However, rpmdb-redhat package does not seem to be available for RHEL5.

Thanks,
3 REPLIES
Court Campbell
Honored Contributor

Re: Install an rpm with all its dependencies in RHEL5

--aid has been deprecated. Also, I believe that up2date no longer exists. Red Hat seems to have made a switch to yum. You could create your own repo of the dvd/cd media and use it.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Court Campbell
Honored Contributor

Re: Install an rpm with all its dependencies in RHEL5

http://searchenterpriselinux.techtarget.com/tip/0,289483,sid39_gci1244274,00.html
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
dirk dierickx
Honored Contributor

Re: Install an rpm with all its dependencies in RHEL5

indeed, you will always need a repository, otherwise it will never work automaticly.

so it is no good just putting all the rpms in a directory and just using 'rpm -i' and thinking that will work.

yum is pretty sweet, it has one great advantage up2date does not have (or at least, i don't know about it) and that is the option '-localinstall'.

this enables you to install rpm's from outside the regular RH repos but yum will still resolve the dependencies for you.

anyway, setting up your own repo is not that hard. in fact it is good practise, certainly if you have a lot of RH servers around.

see here for example: http://www.webmo.net/support/yum_repository.html