Re: Adding to CreateLocalRepos wiki page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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@xxxxxxxxx and I'm John.

Andres Mejia <amejia004@xxxxxxxxx> 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@xxxxxxxxxx
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@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos-docs




--
~ Andres
_______________________________________________
CentOS-docs mailing list
CentOS-docs@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos-docs

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Users]     [CentOS Virtualization]     [Linux Media]     [Asterisk]     [Netdev]     [X.org]     [Xfree86]     [Linux USB]     [Project Hail Cloud Computing]

  Powered by Linux