LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Saving Yum updates... how? (https://www.linuxquestions.org/questions/linux-software-2/saving-yum-updates-how-588645/)

dwhitney67 10-01-2007 11:07 AM

Saving Yum updates... how?
 
Hello,

I recently updated a Fedora Core 5 system, using yum, with updates for glibc, gcc, and a few other packages.

How can I repeat the process such that I can save the packages that were downloaded? I need to backup these packages so that I can recreate the same FC5 system elsewhere.

Thank you in advance for your assistance.

PTrenholme 10-01-2007 12:32 PM

Well, in FC6 and F7, there is a "downloadonly" YUM plugin available which add a --downloadonly={yes|no} option to the yum command. I don't know if it would work on an unsupported, obsolete, FC5 distribution.

You could, of course, just download the RPM files from any repository that has them available using a web browser or FTP.

dwhitney67 10-01-2007 02:33 PM

Can you give me a hint where I might find the RPM repo for FC5? When I visited a Fedora mirror site (e.g. http://linux.nssl.noaa.gov/fedora/linux), all I could find is the latest versions of packages available.

These packages are later versions than are available for FC5, yet I was able to update my FC5 system only a week ago, thus my system thinks that it has the latest versions.

Is there a trick to examining the files in /etc/yum.repo.d to obtain where my updates came from? I've examined the files, but most links (baseURLs) are not valid.

Here's the list of RPMS I require:
  • gcc-4.1.1-51
  • glibc-2.4
  • linux-2.6.20-1.2320.fc5
  • kernel source for linux-2.6.20-1.2320.fc5

P.S. Thanks for the tip concerning the "downloadonly" plugin. I now have that.

axelfc 10-02-2007 02:31 AM

Take a look here: http://download.fedora.redhat.com/pu...pdates/5/i386/

I think it has the packages you want.

Just to know in /etc/yum.conf there is an option keepcache=0. If you enable this keepcache=1 all the files that you download and install with yum will be stored in your system under /var/cache/yum

dwhitney67 10-02-2007 03:35 AM

Axelfc -

Thank you very much for going out of your way to find me that URL! I now have my little collection of RPMs that hopefully, in conjunction with the FC5 distro, will enable me to resurrect my Pentium-MMX system should the need arise.


All times are GMT -5. The time now is 03:18 AM.