[CentOS] update of rpm directory

2010-05-13 Thread Adrian Sevcenco
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



smime.p7s
Description: S/MIME Cryptographic Signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] update of rpm directory

2010-05-13 Thread Brunner, Brian T.
 
 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**

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] update of rpm directory

2010-05-13 Thread Chaitanya Yanamadala
On 5/13/10, Adrian Sevcenco adrian.sevce...@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


-- 
Chaitanya

A man can get discouraged many times but he is not a failure until he
stops trying...

The difference between 'involvement' and 'commitment' is like an
eggs-and-ham breakfast: the chicken was 'involved' - the pig was
'committed'.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] update of rpm directory

2010-05-13 Thread Phil Schaffner
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
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] update of rpm directory

2010-05-13 Thread Adrian Sevcenco
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
 


-- 
Best regards,
Adrian

---
Adrian Sevcenco - Institute of Space Sciences, Romania
---



smime.p7s
Description: S/MIME Cryptographic Signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] update of rpm directory

2010-05-13 Thread Spiro Harvey
Adrian Sevcenco adrian.sevce...@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.


-- 
Spiro Harvey  Knossos Networks Ltd
021-295-1923  www.knossos.net.nz


signature.asc
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] update of rpm directory

2010-05-13 Thread Les Mikesell
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?

-- 
   Les Mikesell
lesmikes...@gmail.com


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] update of rpm directory

2010-05-13 Thread Jobst Schmalenbach

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


-- 
I have always wished that my computer would be as easy to use as my telephone. 
My wish has come true. I no longer know how to use my telephone. -- Bjarne 
Stroustrup, inventor of the C++ language.

  | |0| |   Jobst Schmalenbach, jo...@barrett.com.au, General Manager
  | | |0|   Barrett Consulting Group P/L  The Meditation Room P/L
  |0|0|0|   +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos