My very first post here.
for those looking to grab a local copy of public-yum.oracle.com, I have created a script that will automate the process.
You can download the script from github public-yum-downloader.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public-yum-downloader.sh -h | |
-h|--help this screen | |
-a|--arch=<arch> architecture (ie. i386 or x86_64) | |
-R|--release=<release> release to download | |
-P|--path=<path> destination path of download (ie. /var/www/html) | |
-p|--proxy=<url> proxy (ie http://proxy:3128) | |
-r|--repo=<repo> manual repo download (ie. ol6_addons) | |
-m|--min minimal package download for LXC host | |
-u|--url=<url> local yum repo url (ie. http://mirandaa00) | |
-s|--src download source rpm | |
-l|--local=<path>> local path to check for rpms (ie. /media/iso) | |
Release is of the format "major.minor", for example "5.8", "6.3", or "6.latest" | |
To download latest UEK kernel, use 6.UEK or 5.UEK | |
Download from https://github.com/kikitux/public-yum-downloader |
examples:
if you want to download 6.latest (or keep updated) DocumentRoot for the webserver is /var/www/html url will be http://mirandaa00 proxy is http://proxy:3128
public-yum-downloader.sh -P /var/www/html -p http://proxy:3128 -R 6.latest -a x86_64 --url http://mirandaa00
At the end of the run, will create a package /var/ww/html/local-yum-ol6.repo available as http://mirandaa00/local-yum-ol6.repo
if you want to download latest UEK (or keep updated) DocumentRoot for the webserver is /var/www/html url will be http://mirandaa00 proxy is http://proxy:3128
public-yum-downloader.sh -P /var/www/html -p http://proxy:3128 -R 6.UEK -a x86_64 --url http://mirandaa00
Me gustaron los pescaditos :D
ReplyDelete