Hi I found yum-downloadonly and executed my command do that and save the dependencies in my current directory. Now when I execute my command: rpm -i mypackage all the dependencies are not found even though they are in the current directory. if I do a "yum install mypackage" (and its in the current directory) its not found either. How do I now install the mypackage in the current directory and look for all dependencies in the current directory? Thanks, Jerry
On Dec 1, 2008, at 9:57 AM, Jerry Geis wrote:> I found yum-downloadonly and executed my command do that and save the > dependencies in my current directory. > > Now when I execute my command: > rpm -i mypackage > > all the dependencies are not found even though they are in the > current directory. > > if I do a "yum install mypackage" (and its in the current directory) > its not found either. > > How do I now install the mypackage in the current directory and look > for all dependencies in the current directory?here are two ways: $ mkdir rpmtemp $ sudo yum --downloadonly --downloaddir=./rpmtemp install <package> $ sudo rpm -Uvh ./rpmtemp/*.rpm $ sudo rm -rf rpmtemp or $ mkdir rpmtemp $ sudo yum --downloadonly --downloaddir=./rpmtemp install <package> $ sudo yum localinstall ./rpmtemp/*.rpm $ sudo rm -rf rpmtemp -steve -- If this were played upon a stage now, I could condemn it as an improbable fiction. - Fabian, Twelfth Night, III,v -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2209 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20081201/a17c4c15/attachment-0003.p7s>
Jerry Geis wrote:> Hi > > I found yum-downloadonly and executed my command do that and save the > dependencies in my current directory.Why not let them go where yum wants them?> Now when I execute my command: > rpm -i mypackage > > all the dependencies are not found even though they are in the current > directory.rpm doesn't know anything about finding packages to resolve dependencies. You have to give it all the package names on the command line if you are going to do this manually.> if I do a "yum install mypackage" (and its in the current directory) its > not found either. > > How do I now install the mypackage in the current directory and look for > all dependencies in the current directory?rpm -i *.rpm would work if those are the only rpm packages there. Otherwise if you don't specify a download directory, yum will uses its normal location under /var/cache/yum which is where it will look when you do the yum install. -- Les Mikesell lesmikesell at gmail.com
Reasonably Related Threads
- CentOS 6: Yum downloadonly changes local source repositories (and CentOS 7)
- CentOS 6: Yum downloadonly changes local source repositories
- Centos 4 Yumdownloader vs yum-downloadonly on Centos 5
- ctv, install.views, install.packages (& update.packages)
- Update issue - tar package problem?