Hi! I have an directory full with rpms that are installed on some machines.. what is the best way to update those rpms to the latest version? are there more optimal approaches then searching for each rpm names in an update repo and download one by one?
Thanks, Adrian
Hi! I have an directory full with rpms that are installed on some machines.. what is the best way to update those rpms to the latest version? are there more optimal approaches then searching for each rpm names in an update repo and download one by one?
yum update ******************************************************************* This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. www.Hubbell.com - Hubbell Incorporated**
On 5/13/10, Adrian Sevcenco Adrian.Sevcenco@cern.ch wrote:
Hi! I have an directory full with rpms that are installed on some machines.. what is the best way to update those rpms to the latest version? are there more optimal approaches then searching for each rpm names in an update repo and download one by one?
Thanks, Adrian
Try
yum upgrade to upgrade all the installed rpms or else try Yum update rpmname To upgrade individual rpm
Adrian Sevcenco wrote on 05/13/2010 08:49 AM:
Hi! I have an directory full with rpms that are installed on some machines.. what is the best way to update those rpms to the latest version? are there more optimal approaches then searching for each rpm names in an update repo and download one by one?
Your question is not very clear. Do you mean that you have just a local directory of RPMS or that you maintain a local repo? If just a directory then you may want to read:
http://wiki.centos.org/HowTos/CreateLocalRepos http://wiki.centos.org/HowTos/CreateLocalMirror
In either case, it you want to see what updates are available from a particular repo, say "reponame":
yum --disablerepo * --enablerepo reponame check-update
You could then download and put RPMS in your local repo as desired.
Phil
On 05/13/2010 04:23 PM, Phil Schaffner wrote:
Adrian Sevcenco wrote on 05/13/2010 08:49 AM:
Hi! I have an directory full with rpms that are installed on some machines.. what is the best way to update those rpms to the latest version? are there more optimal approaches then searching for each rpm names in an update repo and download one by one?
Your question is not very clear. Do you mean that you have just a local
Sorry about that..
directory of RPMS or that you maintain a local repo? If just a
i have just a directory of rpms that are going to be installed through some scripting (through PXE) on a bunch of servers. all i need is to update the version for the rpms present in that dir
directory then you may want to read:
http://wiki.centos.org/HowTos/CreateLocalRepos http://wiki.centos.org/HowTos/CreateLocalMirror
In either case, it you want to see what updates are available from a particular repo, say "reponame":
yum --disablerepo * --enablerepo reponame check-update
You could then download and put RPMS in your local repo as desired.
Thanks it helps! but a little more bit of info^Whints could help even more: lets say that on the server i do this stuff (and where is this dir from which nodes are installed) everything is up to date.. (and worker nodes are NOT updated) and i dont want to ask nodes do give me an "rpm -qa".. how can a make a diff (comparing versions) between rpms form local directory and update repo? (other than take the rpm name from dir; strip name and version ; search in update repo the rpm name ; compare version , if newer download rpm )
Thanks a lot!! Adrian
Phil _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Adrian Sevcenco Adrian.Sevcenco@cern.ch wrote:
Thanks it helps! but a little more bit of info^Whints could help even more: lets say that on the server i do this stuff (and where is this dir from which nodes are installed) everything is up to date.. (and worker nodes are NOT updated) and i dont want to ask nodes do give me an "rpm -qa".. how can a make a diff (comparing versions) between rpms form local directory and update repo? (other than take the rpm name from dir; strip name and version ; search in update repo the rpm name ; compare version , if newer download rpm )
If I understand you correctly, you're asking how the worker nodes know what to update?
The simplest answer is that "yum" deals with all that.
If you set up a local repo mirror, then that machine should share out that repo directory via http or ftp. You would sync that with an upline mirror, either via ftp or rsync.
Then on the worker nodes, you would create a custom repo file in /etc/yum.repos.d pointing to your local repository.
Then the worker nodes could just run a "yum update" and they would get all the updates they need. It will do all the version checking, and all you have to worry about is keeping your server's local mirror up to date.
On 5/13/2010 3:26 PM, Adrian Sevcenco wrote:
On 05/13/2010 04:23 PM, Phil Schaffner wrote:
Adrian Sevcenco wrote on 05/13/2010 08:49 AM:
Hi! I have an directory full with rpms that are installed on some machines.. what is the best way to update those rpms to the latest version? are there more optimal approaches then searching for each rpm names in an update repo and download one by one?
Your question is not very clear. Do you mean that you have just a local
Sorry about that..
directory of RPMS or that you maintain a local repo? If just a
i have just a directory of rpms that are going to be installed through some scripting (through PXE) on a bunch of servers. all i need is to update the version for the rpms present in that dir
directory then you may want to read:
http://wiki.centos.org/HowTos/CreateLocalRepos http://wiki.centos.org/HowTos/CreateLocalMirror
In either case, it you want to see what updates are available from a particular repo, say "reponame":
yum --disablerepo * --enablerepo reponame check-update
You could then download and put RPMS in your local repo as desired.
Thanks it helps! but a little more bit of info^Whints could help even more: lets say that on the server i do this stuff (and where is this dir from which nodes are installed) everything is up to date.. (and worker nodes are NOT updated) and i dont want to ask nodes do give me an "rpm -qa".. how can a make a diff (comparing versions) between rpms form local directory and update repo? (other than take the rpm name from dir; strip name and version ; search in update repo the rpm name ; compare version , if newer download rpm )
Why don't you just do the 'yum update' on each box and let it figure out and get what is newer itself?
If I understand this correctly then you want to update the LOCAL RPM files to the latest version?
I am not sure but you could try "yumdownloader" with some kind of bash script:
for f in `ls -1 *rpm`; do echo Working on file: $f rpm=${f##*/} name=${rpm%%-[0-9]*} echo The name of the rpm: $name yumdownloader $name done
This is NOT tested but you could give it a try!
jobst
On Thu, May 13, 2010 at 03:49:27PM +0300, Adrian Sevcenco (Adrian.Sevcenco@cern.ch) wrote:
Hi! I have an directory full with rpms that are installed on some machines.. what is the best way to update those rpms to the latest version? are there more optimal approaches then searching for each rpm names in an update repo and download one by one?
Thanks, Adrian
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos