Add PPC updates to local x86 yum repository

Latest response

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.

Hi Phil,

thanks for your reply. The problem is the local repository is only downloading packages for its architecture (it's a x86 VM). It is not downloading ppc packages, although I've added a new repo in yum.repos.d folder. 

 

Do you know what can I do to download them? 

 

Thanks

 

PS : Perhaps the repo URL typed at first post is not correct to update RHEL for PPC64

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

Hi Daniel,

I'm using rhel5. I'll try mrepo and let you know.

 

Thanks

 

PS : after configuring all I get this message:

 

-----------------------------------

 

Verbosity set to level 3
 
Using configfile /etc/mrepo.conf
 
Reading config file /etc/mrepo.conf
 
Setting option confdir in section [main] to: /etc/mrepo.conf.d
 
Setting option srcdir in section [main] to: /var/mrepo
 
Setting option wwwdir in section [main] to: /var/www/mrepo
 
Setting option mailto in section [main] to: root@localhost
 
Setting option smtp-server in section [main] to: localhost
 
Setting option arch in section [main] to: i386
 
Setting option rhnlogin in section [main] to: my_USER:my_PASSWORD
 
Reading config file /etc/mrepo.conf.d/rhel5-server.conf
 
Setting option arch in section [rhel5-Server] to: ppc i386
 
rhel5-Server-i386: Updating Red Hat Enterprise Linux Server 5 (i386)
 
rhel5-Server-i386: Mirror packages from rhns:///rhel-i386-server-5 to /var/mrepo/rhel5-Server-i386/updates
 
warning: can't access /etc/sysconfig/rhn/sources
 
rhel5-Server-ppc: Updating Red Hat Enterprise Linux Server 5 (ppc)
 
rhel5-Server-ppc: Mirror packages from rhns:///rhel-ppc-server-5 to /var/mrepo/rhel5-Server-ppc/updates
 
rhel5-Server-i386: Generating Red Hat Enterprise Linux Server 5 (i386) meta-data
 
rhel5-Server-ppc: Generating Red Hat Enterprise Linux Server 5 (ppc) meta-data
 
Traceback (most recent call last):
 
  File "/usr/bin/rhnget", line 517, in ?
 
    main()
 
  File "/usr/bin/rhnget", line 498, in main
 
    mirrorrhn(op.uri, op.destination)
 
  File "/usr/bin/rhnget", line 407, in mirrorrhn
 
    raise(MirrorException('Unknown error that needs more debugging occured with channel %s. Skipping.\n%s' % (label, e)))
 
__main__.MirrorException: "Unknown error that needs more debugging occured with channel rhel-i386-server-5.
Skipping.\n'up2date'"
 
mrepo: Mirroring failed for rhns:///rhel-i386-server-5 with message:
 
  Failed with return code: 256
 
Traceback (most recent call last):
 
  File "/usr/bin/rhnget", line 517, in ?
 
    main()
 
  File "/usr/bin/rhnget", line 498, in main
 
    mirrorrhn(op.uri, op.destination)
 
  File "/usr/bin/rhnget", line 373, in mirrorrhn
 
    raise(Exception('Error subscribing to channel %s, skipping.%s' % (label, f.faultString)))
 
Exception: Error subscribing to channel rhel-ppc-server-5, skipping.
 
Error Message:
 
    Server already subscribed to 6972
 
Error Class Code: 38
 
Error Class Info: The system is already subscribed to the specified channel.
 
Explanation: 
 
     An error has occurred while processing your request. If this problem
 
     persists please enter a bug report at bugzilla.redhat.com.
 
     If you choose to submit the bug report, please be sure to include
 
     details of what you were trying to do when this error occurred and
 
     details on how to reproduce this problem.
 
 
 
mrepo: Mirroring failed for rhns:///rhel-ppc-server-5 with message:
 
  Failed with return code: 256
 
-------------------------
 
I'll try to fix it and let you know

 

Verbosity set to level 3
Using configfile /etc/mrepo.conf
Reading config file /etc/mrepo.conf
Setting option confdir in section [main] to: /etc/mrepo.conf.d
Setting option srcdir in section [main] to: /var/mrepo
Setting option wwwdir in section [main] to: /var/www/mrepo
Setting option mailto in section [main] to: root@localhost
Setting option smtp-server in section [main] to: localhost
Setting option arch in section [main] to: i386
Setting option rhnlogin in section [main] to: my_USER:my_PASSWORD
Reading config file /etc/mrepo.conf.d/rhel5-server.conf
Setting option arch in section [rhel5-Server] to: ppc i386
rhel5-Server-i386: Updating Red Hat Enterprise Linux Server 5 (i386)
rhel5-Server-i386: Mirror packages from rhns:///rhel-i386-server-5 to /var/mrepo/rhel5-Server-i386/updates
warning: can't access /etc/sysconfig/rhn/sources
rhel5-Server-ppc: Updating Red Hat Enterprise Linux Server 5 (ppc)
rhel5-Server-ppc: Mirror packages from rhns:///rhel-ppc-server-5 to /var/mrepo/rhel5-Server-ppc/updates
rhel5-Server-i386: Generating Red Hat Enterprise Linux Server 5 (i386) meta-data
rhel5-Server-ppc: Generating Red Hat Enterprise Linux Server 5 (ppc) meta-data
Traceback (most recent call last):
  File "/usr/bin/rhnget", line 517, in ?
    main()
  File "/usr/bin/rhnget", line 498, in main
    mirrorrhn(op.uri, op.destination)
  File "/usr/bin/rhnget", line 407, in mirrorrhn
    raise(MirrorException('Unknown error that needs more debugging occured with channel %s. Skipping.\n%s' % (label, e)))
__main__.MirrorException: "Unknown error that needs more debugging occured with channel rhel-i386-server-5. Skipping.\n'up2date'"
mrepo: Mirroring failed for rhns:///rhel-i386-server-5 with message:
  Failed with return code: 256
Traceback (most recent call last):
  File "/usr/bin/rhnget", line 517, in ?
    main()
  File "/usr/bin/rhnget", line 498, in main
    mirrorrhn(op.uri, op.destination)
  File "/usr/bin/rhnget", line 373, in mirrorrhn
    raise(Exception('Error subscribing to channel %s, skipping.%s' % (label, f.faultString)))
Exception: Error subscribing to channel rhel-ppc-server-5, skipping.
Error Message:
    Server already subscribed to 6972
Error Class Code: 38
Error Class Info: The system is already subscribed to the specified channel.
Explanation: 
     An error has occurred while processing your request. If this problem
     persists please enter a bug report at bugzilla.redhat.com.
     If you choose to submit the bug report, please be sure to include
     details of what you were trying to do when this error occurred and
     details on how to reproduce this problem.
 
mrepo: Mirroring failed for rhns:///rhel-ppc-server-5 with message:
  Failed with return code: 256

Have you installed mrepo-0.8.7-4.el6.noarch.rpm version? This is for RHEL 6, try the right version for RHEL5. http://pkgs.repoforge.org/mrepo/

 

Check if you have this file: /etc/sysconfig/rhn/sources, if not, create it and insert this line:

 

up2date default

 

Let us updated...