FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 12-10-2009, 06:21 AM
john blair
 
Default find latest version of rpms from a mirror

I should have mentioned that I am looking for a solution that I can even run from my debian box (i.e no yum)

--- On Thu, 12/10/09, john blair <mailtome200420032002@yahoo.com> wrote:

> From: john blair <mailtome200420032002@yahoo.com>
> Subject: [CentOS] find latest version of rpms from a mirror
> To: centos@centos.org
> Date: Thursday, December 10, 2009, 12:20 PM
> I want to write a script to find the
> latest version of rpm of a given package available from a
> mirror for eg: http://mirror.centos.org/centos/5/os/x86_64/CentOS/
> Is there any existing script that does this? Or can someone
> give me a general idea on how to go about this?
>
>
> * * *
> _______________________________________________
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 12-10-2009, 10:05 AM
John Doe
 
Default find latest version of rpms from a mirror

From: john blair <mailtome200420032002@yahoo.com>
> I want to write a script to find the latest version of rpm of a given package
> available from a mirror for eg:
> http://mirror.centos.org/centos/5/os/x86_64/CentOS/
> Is there any existing script that does this? Or can someone give me a general
> idea on how to go about this?

Example:

URL='http://mirror.centos.org/centos/5/os/x86_64/CentOS/'
PKG=...
links -dump $URL | grep "$URL$PKG-[0-9]" | cut -f2 -d' '

Replace with 'cut -d'/' -f9' if you don't want the full URL...

JD



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

Thread Tools




All times are GMT. The time now is 09:42 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org