LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   centos yum update (https://www.linuxquestions.org/questions/linux-server-73/centos-yum-update-751694/)

LinuxLover 09-01-2009 01:45 AM

centos yum update
 
I installed the 3 Centos 5.3 servers and and update one server via
yum -y update

This took ~1 hr. Now I want to update remaining two machines as well but don't want to waste time and bandwidth to update them.

How can I point my two servers to get updates i already downloaded and installed on 1st server?

Also at what location it saves these rpms?

robertjinx 09-01-2009 03:51 AM

Try to go to: /var/cache/yum and then

find . -name "*.rpm" -print

but I believe you'll find all the rpm's in /var/cache/yum/updates/packages, but I'm not 100% sure.

colucix 09-01-2009 04:07 AM

Quote:

Originally Posted by robertjinx (Post 3665045)
but I believe you'll find all the rpm's in
/var/cache/yum/updates/packages, but I'm not 100% sure.

I can confirm that. However I doubt that yum has kept the downloaded files, since the default behaviour is to delete them after the installation. To keep downloaded packages you have to edit the file /etc/yum.conf and in the [main] section add the code:
Code:

keepcache=1
@LinuxLover: following the suggestion above you can keep at least the package from one of the two remaining machines, then update the last one by setting a local update repository.


All times are GMT -5. The time now is 12:24 AM.