Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I install a software package on Fedora from the terminal using the command like

# yum install live-usb-creator

Now at first it downloads some of the packages from online repository and then later it install that files on to the system.

Now I want a backup of that downloaded files so that in future I can install that packages directly without connecting to internet.

But the problem is that I don't know where does it download that all files.

If it is possible to get those files then I have two systems having Fedora 13 i686 installed on both of them. One has Internet connection and other has nothing like that.

Now I want to install sofwares using yum on the first system from the online repository and after that can I install the same sofwares on my second system from the downloaded files on the first system?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

Set

keepcache=1

in yum.conf

Then future rpms should stay under /var/cache/yum

share|improve this answer
    
Thanks @jamespo , It works well. But what about installing those files on another system? –  Vikas Patidar Mar 11 '11 at 4:39
    
If you want to share rpms, another way to do it might be to use a local proxy (like squid) and set it to cache rpm's aggressively. Then set yum up on your multiple machines to use that proxy. –  jamespo Mar 11 '11 at 11:08
    
Okay Thanks @jamespo, now can I use that local proxy on that same machine? Please post some usefull links where I can get the whole idea. I have no option for installing software on that machine. –  Vikas Patidar Mar 11 '11 at 11:16

I googled and found this. You can install the downloadonly plugin using yum install yum-downloadonly. Then you can use the flag --downloadonly for the concerned package. This, probably, isn't the exact solution to your question. But I think it would be useful.

Also checkout Q.14 on this. It might help as well.

share|improve this answer
    
Thanks @Dharmit Shah, It's pretty usefull :) –  Vikas Patidar Mar 10 '11 at 7:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.