I want to update a CentOS 6.x install. But it's located behind a firewall with no connectivity to the external internet.
What are my options? === Al
On 3/11/2013 5:16 PM, Al Sparks wrote:
I want to update a CentOS 6.x install. But it's located behind a firewall with no connectivity to the external internet.
make a local copy of the centos repository section(s) you need, and point your server at that via /etc/yum.repos.d/CentOS-Base.repo ...
I use this script (on an internet connected machine) to grab all the 32 and 64bit centos releases, but not source RPMs
#!/usr/bin/sh /usr/local/bin/lftp -c 'open ftp://mirrors.kernel.org && lcd /export/mirror && mirror --continue --verbose=1 -x ia64 -x s390 -x s390x -x alpha -x SRPMS centos'
then, my CentOS-Base.repo looks like...
[base] name=CentOS-$releasever - Base #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&rep... baseurl=http://xx.yy.ww.zz/mirror/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
(where that xx.yy.ww.zz is the internal/private IP of my mirror server...)
Hi
1. On a system with internet access mirror the CentOS and Additional repositories that you need. You can use things like rsync or lftp (A Google Search will help with this).
2. Make the content you have mirrored available to your internal system. (USB Stick or similar may be an option here)
3. Configure yum to look at your mirrored info. /etc/yum.repos.d/CentOS-Media.repo should help you work out what you need.
If you need to update a number of systems I suggest that you set up a permanent local mirror on your internal system so that once you update the repository information you can easily apply it to all systems.
I hope this helps :)
On Tue, Mar 12, 2013 at 1:16 PM, Al Sparks data345@yahoo.com wrote:
I want to update a CentOS 6.x install. But it's located behind a firewall with no connectivity to the external internet.
What are my options? === Al _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos