![](https://seccdn.libravatar.org/avatar/861b5545c111d2257fa12e533e723110.jpg?s=120&d=mm&r=g)
The 03.09.23 at 13:23, Juan Francisco Torres Chacón wrote:
I think this has been asked a lot before, but I cant find the information..
We just updated a SuSE 8.1 machine, and YOU downloaded a lot of RPMS to /var/lib....
It is partly documented on the unofficial SuSE FAQ from this list. The idea is to setup a local mirror - which can be a CD, a dir for use with ftp or nfs, whatever. But, instead of refetching the rpm files, you already have them on the "you" path somewhere. So, read the doc about how to do a mirror. copy the rpms etc, but not the "patches" dir, one with small files with the patches description: this one you have to download directly from the server. After copying your local files, you might need to get a bunch of files from the server, depends. Let me see... I still have the script around - take it, "mutandis mutandi": echo Actualizando lista de parches ---------------------- rsync --archive --update --compress --delete -P \ ftp.gwdg.de::SuSE-8.1_update/patches/. \ /usr/local/update/i386/update/8.1/patches/. \ | tee /home/cer/rsync.81.patches.log echo Actualizando listas de ficheros -------------------- #rsync --archive --update --compress --size-only -vv --dry-run \ # ftp.gwdg.de::SuSE-8.1_update/rpm/i586/. \ # /usr/local/update/i386/update/8.1/rpm/i586/. | tee /home/cer/rsync.81.dryrun.rpm. #rsync --archive --update --compress --size-only -vv --dry-run \ # ftp.gwdg.de::SuSE-8.1_update/rpm/i686/. \ # /usr/local/update/i386/update/8.1/rpm/i686/. | tee /home/cer/rsync.81.dryrun.rpm. # #rsync --archive --update --compress --size-only -vv --dry-run \ # ftp.gwdg.de::SuSE-8.1_update/rpm/noarch/. \ # /usr/local/update/i386/update/8.1/rpm/noarch/. | tee /home/cer/rsync.81.dryrun.rp #rsync --archive --update --compress --size-only -vv --dry-run \ # ftp.gwdg.de::SuSE-8.1_update/rpm/nosrc/. \ # /usr/local/update/i386/update/8.1/rpm/nosrc/. | tee /home/cer/rsync.81.dryrun.rpm echo Actualizando rpm/i586 ------------------------------ rsync --archive --update --compress --size-only -vv -P \ --exclude-from=/home/cer/bin/rsync.81.exc \ ftp.gwdg.de::SuSE-8.1_update/rpm/i586/. \ /usr/local/update/i386/update/8.1/rpm/i586/. | tee /home/cer/rsync.81.rpm.i586 echo Actualizando rpm/i686 ----------------------------- rsync --archive --update --compress --size-only -vv -P \ --exclude-from=/home/cer/bin/rsync.81.exc \ ftp.gwdg.de::SuSE-8.1_update/rpm/i686/. \ /usr/local/update/i386/update/8.1/rpm/i686/. | tee /home/cer/rsync.81.rpm.i686 echo Actualizando rpm/noarch --------------------------- rsync --archive --update --compress --size-only -vv -P \ --exclude-from=/home/cer/bin/rsync.81.exc \ ftp.gwdg.de::SuSE-8.1_update/rpm/noarch/. \ /usr/local/update/i386/update/8.1/rpm/noarch/. | tee /home/cer/rsync.81.rpm.no echo Actualizando rpm/nosrc --------------------------- rsync --archive --update --compress --size-only -vv -P \ --exclude-from=/home/cer/bin/rsync.81.exc \ ftp.gwdg.de::SuSE-8.1_update/rpm/nosrc/. \ /usr/local/update/i386/update/8.1/rpm/nosrc/. | tee /home/cer/rsync.81.rpm.nos You see that I have sections commented out, because I already have them. First I downloaded the list of files with dry-run sessions, then I wrote the next sections. I have it divided in sections because I did not want to download the full update tree, my bandwidth is limited (modem). I used a "rsync.81.exc" file containing files to exclude: # Poner las reglas particulares antes + kdeaddons3-sound-3.0.4-4.i586.rpm # Paquetes que me faltan del tcl (no debe tener parches) + tcl-8.4-64.noarch.rpm + tcl-8.4-64.i586.rpm + itcl-3.3-41.i586.rpm + tk-8.4-64.i586.rpm *i586.rpm *i686.rpm k_psmp-2.4.19-167.i586.patch.rpm k_smp-* + susehelp_en* - susehelp_* + kde3-i18n-es-3.0.4-10.noarch.rpm - kde3-i18n-* - yast2-trans-de-2.6.24-0.noarch.rpm I will not bother to translate, ein? ;-)
Is there a procedure to reuse all that information and downloaded packages on a different machine?
I created a CD. Bad luck has it that you may need a file that you didn't download because the first machine doesn't need it, and the second does, depending on what it has installed.
How can this be done?
Read the FAQ doc on the mirror, it is the first step - saves me typing O:-) -- Cheers, Carlos Robinson