[CentOS-docs] Adding to CreateLocalRepos wiki page

Mon Dec 24 03:26:46 UTC 2012
Andres Mejia <amejia004 at gmail.com>

Alright. It's basically making use of the programs yumdownloader, rpm, and
createrepo.

What I do is I have a machine that has the same setup as the other machines
in the isolated network. This machine has Internet access, so what I go to
some directory where I want to download the RPM packages into with
yumdownloader. In this directory, I run the following.

$ yumdownloader --resolve $(rpm -qa --qf
"%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH} ")

Note that there is suppose to be a space after %{ARCH} in the formatting
string above. This takes a while, but eventually, all the packages get
downloaded. Once finished, I use createrepo to create a basic repository,
burn the new repo onto disc (the repo is about 1GB so I burn it to a DVD),
and then transfer the repo into a share directory in the isolated network.
Each machine has a .repo file under /etc/yum.repos.d/ which points to this
share, so to update each machine, it's simply a matter of running 'yum
update'.


On Fri, Dec 21, 2012 at 1:43 PM, John <lmindlists at gmail.com> wrote:

> Andres, while you're waiting, would you please send that information to
> me? I'm actually doing that very process in our lab and would be curious to
> know what you did.
>
> My email is lmindlists at gmail.com and I'm John.
>
> Andres Mejia <amejia004 at gmail.com> wrote:
>>
>> Hi. I want to make a small update to the CreateLocalRepos how-to page. My
>> account username is AndresMejia.
>>
>> The update are just small notes on creating a local repo of just the
>> packages which are already installed on a system. This is useful when you
>> maintain systems which are in their own isolated network.
>>
>> ~ Andres
>>
>> ------------------------------
>>
>> CentOS-docs mailing list
>> CentOS-docs at centos.org
>> http://lists.centos.org/mailman/listinfo/centos-docs
>>
>>
> --
> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
>
> _______________________________________________
> CentOS-docs mailing list
> CentOS-docs at centos.org
> http://lists.centos.org/mailman/listinfo/centos-docs
>
>


-- 
~ Andres
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos-docs/attachments/20121223/e8848438/attachment-0006.html>