Distribute packages to other client machines using yum

Thread Tools Search this Thread
Operating Systems Linux Red Hat Distribute packages to other client machines using yum
# 1  
Old 09-22-2011
Distribute packages to other client machines using yum


We have a 2 yum repository servers (2.6.18-92.el5 x86_64 x86_64 x86_64 GNU/Linux) that are RHN registered and should receive the latest patch/packages. The servers are configured somehow that the new updates are not downloaded automatically which I guess is in the yum-updatesd.conf file

[root@jdcumgt01 yum]# more yum-updatesd.conf
# how often to check for new updates (in seconds)
run_interval = 3600
# how often to allow checking on request (in seconds)
updaterefresh = 600
# how to send notifications (valid: dbus, email, syslog)
emit_via = dbus
# should we listen via dbus to give out update information/check for
# new updates
dbus_listener = yes
# automatically install updates
do_update = no
# automatically download updates
do_download = no
# automatically download deps of updates
do_download_deps = no

When I run yum list updates command on jdcumgt02 server it lists the latest updates/packages

httpd.i386 2.2.353.el5_7.1 rhel-i386-server-5
httpd-manual.i386 rhel-i386-server-5

When I run the same on the other server jdcumgt01 I get


In the /etc/yum.repos.d directory the file localrepo.repo exists on jdcumgt01

[root@jdcumgt01 yum.repos.d]# more localrepo.repo
name=Local update Configuration

What I would like some advise on is:

How do I fix this issue on jdcumgt01 server?

If I use the other server jdcumgt02 to update packages

How do I update the Apache software only on server jdcumgt02 and then update Apache on the rest of the Linux systems on the network?

Example - one server I would like to upgrade Apache on is currently configured

[root@hostname yum.repos.d]# ls -l
total 12
-rw-r--r-- 1 root root 164 Sep 29 2010 localproxy.repo
-rw-r--r-- 1 root root 561 Dec 14 2010 rhel-debuginfo.repo
-rw-r--r-- 1 root root 222 Dec 14 2010 rhel-source.repo

[root@hostname yum.repos.d]# more rhel-source.repo
name=Red Hat Enterprise Linux $releasever - Source

[root@hostname yum.repos.d]# more localproxy.repo
name=Updates from jdcumgt01

[root@hostname yum.repos.d]# yum repolist
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
repoid reponame status
localproxy Updates from
jdcumgt01 enabled: 11,728
repolist: 11,728
[root@hostname yum.repos.d]#
Thanks in advance
# 2  
Old 09-22-2011
We have a 2 yum repository servers (2.6.18-92.el5 x86_64 x86_64 x86_64 GNU/Linux) that are RHN registered and should receive the latest patch/packages
Are all your systems that use Red Hat software registered with Red Hat or only these two systems?
# 3  
Old 09-23-2011

Only the two managment servers are registered.... jdcumgt01 (x86_64 x86_64 x86_64) and jdcumgt02(i686 athlon i386). The other servers in the network should be configred and able to update from both the management servers depending on their architecture.

Example - I would like to upgrade Apache

I have just ran the following on the management server
[root@jdcumgt02]# yum update httpd

It finds the latest Apache version and dependencies, I download and Apache is installed.

I would now like to use yum to update Apache on one of the servers on my network from the management server jdcumgt02 however it does not detect the update or latest version of Apache.

Server configuration (non management server)

[root@hostname yum.repos.d]# more localproxy.repo
name=Red Hat Enterprise Linux $releasever - $basearch
[root@hostname yum.repos.d]#

[root@hostname /]# yum list updates | grep httpd
This system is not registered with RHN.
RHN support will be disabled.
httpd.i386                             2.2.3-31.el5_4.2               localproxy
httpd-manual.i386                      2.2.3-31.el5_4.2               localproxy

Can you advise how I upgrade Apache on this server from the management server. How do I get it to detect the latest Apache version on the mamagement server and upgrade Apache.

The other problem I have is the other management server has the following error when I run yum list updates

[root@jdcumgt01 yum.repos.d]# yum list updates
Loaded plugins: rhnplugin, security
file:///opt/localrepo/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/opt/localrepo/repodata/repomd.xml'
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: localrepo. Please verify its path and try again

Any ideas how this can be fixed?

# 4  
Old 09-23-2011
I am closing this thread. This forum cannot help you subvert Red Hat licensing requirements.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Installation of virt-manager while yum update and yum install rhvm does not work

I have downloaded RHEV-H 4.2 Red Hat Virtualization - Red Hat Customer Portal (RHVirtualization 4.2 Host and Manager iso). I uploaded the image and installed on an HP G9 server baremetal. I found I dont have a WAN/net connectivity later on HPG9 server. How can I still install virt-manager on... (1 Reply)
Discussion started by: Paras Pandey
1 Replies

2. UNIX for Dummies Questions & Answers

Yum not working on client while able to do the ftp

1)check vsftpd service is running service vsftpd status 2)mkdir -p /var/ftp/pub/Packages Packages will contain all rpm packages 3)copy the xml file to Packages folder #cp -arf /mnt/hgfs/share/RHEL_DVD/Packages /var/ftp/pub/Packages 4)install the 3 required rpm rpm --nodeps -ivh... (0 Replies)
Discussion started by: joj123
0 Replies

3. Red Hat

Yum client configuration error

Dear concern, I want to configure a yum client node. Yum configuration file (/etc/yum.repos.d/) is given below: # cat server.repo name=rhel6 baseurl= enabled=1 gpgcheck=0 We got following error message while executing yum list command. # yum clean... (1 Reply)
Discussion started by: makauser
1 Replies

4. UNIX for Advanced & Expert Users

Yum find a very common file in many packages

I am trying to find a yum file that is very common in many packages. I would normally start off with this command, but the file is SO common I don't know which package it is in. yum provides \*compress (1 Reply)
Discussion started by: cokedude
1 Replies

5. What is on Your Mind?

What's your favorite SSH client to connect to UNIX/Linux machines?

I am curious about the most popular ssh client on Windows environment. Talking about me, I use PuTTY most of the time coupled with WinSCP to transfer files. But, I like Tera Term too. It has great drag-drop feature where you can drag a file/folder and drop on the window and it will transfer the... (14 Replies)
Discussion started by: admin_xor
14 Replies

6. UNIX for Dummies Questions & Answers

Centos commands: Yum Upgrade versus Yum update

Hi, I would like to know the difference between YUM UPDATE and YUM UPGRADE. The man pages say upgrade is same as update with the obsolete option. And by default it says the obsolete option is turned on, which would make them equivalent. Does not say what obsolete does. Can someone please... (3 Replies)
Discussion started by: mojoman
3 Replies

7. UNIX for Dummies Questions & Answers

How to distribute compressed files as text?

Hello everybody, I've seen some text documents where they publish blocks of text and tell you to save it as "file.tgz" for example, and when you decompress the file, it actually works. How is that done? is there a program? Because i tried cat and doesn't work, tried less, more, hexedit and... (2 Replies)
Discussion started by: semash!
2 Replies

8. Linux

update packages with yum

Hello Is there a way to update a package to a specific version with yum? So, I have version 1 of package A installed. Versions 2 and 3 are available, but I only want to upgrade to version 2. Any assistance would be appreciated. Thanks! (1 Reply)
Discussion started by: garskoci
1 Replies

9. Linux

where to edit yum or rpm packages to update

I am setting up a new server with the goal of porting a solaris server to centos. I want to compile some packages myself (ie) http, ssl, mysql, etc. The reason for this is the downloadable rpm packages are very old. I probably want to make sure the kernel is up to date, but the individual pages... (2 Replies)
Discussion started by: csross
2 Replies

10. AIX

How to distribute paging space among multiple PV

Greetings I have an older box (H50) that has it's paging space setup the following way: $ lsps -a Page Space Physical Volume Volume Group Size %Used Active Auto Type paging00 hdisk0 rootvg 224MB 1 yes yes lv hd6 hdisk0 ... (4 Replies)
Discussion started by: outtacontrol
4 Replies
Login or Register to Ask a Question