Add PPC updates to local x86 yum repository
Hi all,
I have a local RHN repository to update my RHEL x86 servers. Now, if is possible, I want to add PPC and PPC64 updates to the repository and configure PS700 to take updates from the local repository instead of the remote one(now PS700 have no Internet connection).
I've create a .repo file in /etc/yum.repos.d containing this:
[RHEL-PowerPC]
name=PowerPC Red Hat Enterprise Linux
baseurl=ftp://public.dhe.ibm.com/software/server/POWER/Linux/IBMITSST/RHEL5/IBM
enabled=1
gpgcheck=1
But when I try to update the local repository, it doesn't download the packages from that repo.
Also I've modified the yum.conf and modified the 'exactarch' value to 0.
Is possible to do it? Also, how can I do it?
Thanks
Responses
I want to do a similar thing.
I have a RHEL 6 - x64 server and a local repository updated with reposync, and I want to create, on the same server, another repository for RHEL 5 - x64, and update with reposync too (or another program), can I do this?
There are a few useful yum variables that can be used to distinguish architecture and releases.
We use something like this internally for extra packages:
[extra]
name=Extra packages
baseurl=http://1.2.3.4/yum/mycompanyhere/$releasever/$basearch/
enabled=1
gpgcheck=0
Take a look at the "Variables" section of the yum.conf(5) manpage for additional detail on the variables and how they might be useful.
I am trying the package mrepo to download different archs, but without success until now.
http://dag.wieers.com/home-made/mrepo/
Try it, and post here your progress... I will do the same...
thx
PS.: mrepo working now on RHEL 6, downloading updates from RHEL 5 and 6.
step 1: Install createrepo-0.4.11-3.el5.noarch.rpm
step 2: Install mrepo-0.8.7-4.el6.noarch.rpm (https://bugzilla.redhat.com/show_bug.cgi?id=684899)
step 3: Configure rhnlogin at /etc/mrepo.conf
step 4: Create files /etc/mrepo.conf.d/rhel5-server.conf and /etc/mrepo.conf.d/rhel6-server.conf with the content below:
[rhel5Server]
name = Red Hat Enterprise Linux Server $release ($arch)
release = 5
arch = x86_64
metadata = repomd repoview
updates = rhns:///rhel-$arch-server-$release
step 5: Create folders /var/mrepo/rhel5Server-x86_64 and /var/mrepo/rhel6Server-x86_64
step 6: Create systemid:
#gensystemid -r 5Server -a x86_64 /var/mrepo/rhel5Server-x86_64
#gensystemid -r 6Server -a x86_64 /var/mrepo/rhel6Server-x86_64
step7: Run "mrepo -ugvvv" and wait downloads
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
