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 -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3110 bytes Desc: S/MIME Cryptographic Signature URL: <http://lists.centos.org/pipermail/centos/attachments/20100513/c21f18fa/attachment.p7s>
> > 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 at 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'."
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
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 at 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 at 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, jobst at 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