On 4/28/20 11:30 AM, Carlos E. R. wrote:
The way I do it is:
Create directory to use as repository. Say, "/data/LocalRPMs_15.1-15.2-kernel/". cd to it, write this script:
#!/bin/bash echo echo "****************** Processing oss/64" echo lynx -listonly -dump -nonumbers "http://download.opensuse.org/distribution/leap/15.2/repo/oss/x86_64" > 0list_1 uniq 0list_1 0list_2 grep -e "kernel.*rpm\|nfs-kernel.*rpm\|virtualbox.*rpm" 0list_2 | grep -v "\.mirrorlist\|.drpm" > 0list_3 aria2c --continue --allow-overwrite=false --auto-file-renaming=false --input-file=0list_3
echo echo "****************** Processing oss/noarch" echo lynx -listonly -dump -nonumbers "http://download.opensuse.org/distribution/leap/15.2/repo/oss/noarch/"/ > 0list_1 uniq 0list_1 0list_2 grep -e "kernel.*rpm\|nfs-kernel.*rpm\|virtualbox.*rpm" 0list_2 | grep -v "\.mirrorlist\|.drpm" > 0list_3 aria2c --continue --allow-overwrite=false --auto-file-renaming=false --input-file=0list_3
echo echo "****************** Processing update/oss/64" echo lynx -listonly -dump -nonumbers "http://download.opensuse.org/update/leap/15.2/oss/x86_64/" > 0list_1 uniq 0list_1 0list_2 grep -e "kernel.*rpm\|nfs-kernel.*rpm\|virtualbox.*rpm" 0list_2 | grep -v "\.mirrorlist\|.drpm" > 0list_3 aria2c --continue --allow-overwrite=false --auto-file-renaming=false --input-file=0list_3
echo echo "****************** Processing update/oss/noarch" echo lynx -listonly -dump -nonumbers http://download.opensuse.org/update/leap/15.2/oss/noarch/ > 0list_1 uniq 0list_1 0list_2 grep -e "kernel.*rpm\|nfs-kernel.*rpm\|virtualbox.*rpm" 0list_2 | grep -v "\.mirrorlist\|.drpm" > 0list_3 aria2c --continue --allow-overwrite=false --auto-file-renaming=false --input-file=0list_3
rm *meta4 *.aria2
Then run it.
Then, add that repo using yast or zypper. Finally, open up YaST and switch to this new repo.
Each time you want to update the machine, run that script first.
Thanks Carlos for this script and your time of course. I set up a directory and ran the script but before I proceed further I want to report that the script appeared to give me a lot of download errors. Here is a random sample of what I saw -
04/28 12:54:56 [ERROR] CUID#293 - Download aborted. URI=http://mirror.siena.edu/opensuse/distribution/leap/15.2/repo/oss/noarch/virt... Exception: [AbstractCommand.cc:351] errorCode=3 URI=http://mirror.siena.edu/opensuse/distribution/leap/15.2/repo/oss/noarch/virt... -> [HttpSkipResponseCommand.cc:219] errorCode=3 Resource not found [DL:11MiB][#78a2ef 79MiB/107MiB(73%)][#043b08 78MiB/118MiB(66%)][#ddac24 110MiB/118MiB(93%)][#d77eb7 160KiB/866KiB(18%)][#107407 0B/877KiB(0%)] 04/28 12:54:56 [ERROR] CUID#294 - Download aborted. URI=http://www.muug.mb.ca/pub/opensuse/distribution/leap/15.2/repo/oss/noarch/vi... Exception: [AbstractCommand.cc:351] errorCode=3 URI=http://www.muug.mb.ca/pub/opensuse/distribution/leap/15.2/repo/oss/noarch/vi... -> [HttpSkipResponseCommand.cc:219] errorCode=3 Resource not found
04/28 12:54:56 [ERROR] CUID#295 - Download aborted. URI=http://mirrors.ucr.ac.cr/opensuse/distribution/leap/15.2/repo/oss/noarch/vir... Exception: [AbstractCommand.cc:351] errorCode=3 URI=http://mirrors.ucr.ac.cr/opensuse/distribution/leap/15.2/repo/oss/noarch/vir... -> [HttpSkipResponseCommand.cc:219] errorCode=3 Resource not found
Do I need to worry about these? I do see a whole lot of rpm files created in the directory after I ran this script... Marc.... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org