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
[main]
# 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
When I run the same on the other server jdcumgt01 I get
[
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
](file:///opt/localrepo/repodata/repomd.xml)
In the /etc/yum.repos.d directory the file localrepo.repo exists on jdcumgt01
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
[localproxy]
name=Red Hat Enterprise Linux $releasever - $basearch
baseurl=http://jdcumgt02.xxxxxxx.xxx.xx
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[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