Sponsored Content
Operating Systems Linux Red Hat Distribute packages to other client machines using yum Post 302558126 by jamba1 on Thursday 22nd of September 2011 08:47:22 PM
Old 09-22-2011
Distribute packages to other client machines using yum

Hi,

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

Code:
 
[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

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

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

Code:



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

Code:
 
[root@jdcumgt01 yum.repos.d]# more localrepo.repo
[localrepo]
name=Local update Configuration
baseurl=file:///opt/localrepo/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

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

Quote:
[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
[rhel-source]
name=Red Hat Enterprise Linux $releasever - Source
baseurl=ftp://ftp.redhat.com/redhat/linux/enterprise/$releasever/en/os/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[root@hostname yum.repos.d]# more localproxy.repo
[localproxy]
name=Updates from jdcumgt01
baseurl=http://jdcumgt01.xxxxxxx.xxx.xxx.xx
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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=ftp://192.168.225.3/pub/Packages/ enabled=1 gpgcheck=0 We got following error message while executing yum list command. # yum clean... (1 Reply)
Discussion started by: makauser
1 Replies

9. 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

10. 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
All times are GMT -4. The time now is 05:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy