6

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?

2 Answers 2

3

Set

keepcache=1

in yum.conf

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

3
  • Thanks @jamespo , It works well. But what about installing those files on another system? Mar 11, 2011 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, 2011 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. Mar 11, 2011 at 11:16
3

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.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .