CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 5 - Miscellaneous Questions
  Deltarpm repository for CentOS 5

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  jdieter
      jdieter
Deltarpm repository for CentOS 5
#1
Newbie
Joined: 2007/5/9
From
Posts: 3
Just a FYI that, as another member has noticed, I have created a presto repository for CentOS 5 updates (i386 only at the moment).
A presto repository allows you to download the differences between rpms rather than the full rpms when updating.

To set up yum-presto on your CentOS 5 box, run the following commands:

# cd /etc/yum.repos.d
# wget http://www.lesbg.com/jdieter/presto/presto-centos.repo
# yum install yum-presto


You will then need to edit /etc/yum.repos.d/CentOS-Base.repo which will have the following section:

[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5


and change it to look like this:

[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
deltaurl=http://www.lesbg.com/jdieter/updates/centos$releasever/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5


Hope someone finds this useful.

Jonathan
Posted on: 2007/5/9 13:48
Create PDF from Post Print
Top
  •  pjwelsh
      pjwelsh
Re: Deltarpm repository for CentOS 5
#2
Professional Board Member
Joined: 2007/1/7
From Central IL USA
Posts: 1967
This is very cool. Can you give us any of your personal pros/cons for what you have seen with presto so far.
Posted on: 2007/5/9 16:32
Create PDF from Post Print
Top
  •  jdieter
      jdieter
Re: Deltarpm repository for CentOS 5
#3
Newbie
Joined: 2007/5/9
From
Posts: 3
Pros:
* Small updates. A normal kernel update is about 2 MB versus 16 MB for the full rpm. Normally, the larger the package, the better compression ratio you'll get. I think I'm averaging 80% savings for FC6 updates.
* Easy fail-over. If for any reason the deltarpm can't be reconstructed into the full rpm, yum goes ahead and downloads the full one.

Cons:
* It's still in beta. I've been using it on my FC6 system for a few months and on my CentOS systems for a couple of weeks now without any major problems, but there are still the occasional small bugs that pop up.

If you do run into problems, let me know and I'll fix it. While you're waiting, you can run yum with the --disablepresto switch to disable it and get normal yum behavior.

Not sure if that's what you're asking, but there it is.
Posted on: 2007/5/9 18:23
Create PDF from Post Print
Top
  •  jdieter
      jdieter
Re: Deltarpm repository for CentOS 5
#4
Newbie
Joined: 2007/5/9
From
Posts: 3
Just a quick heads up that we've had to move to a new server. If you want to use yum-presto with CentOS 5, use:
deltaurl=http://lesloueizeh.com/centos5/i386/updates
Posted on: 2007/8/31 17:57
Create PDF from Post Print
Top
  •  NedSlider
      NedSlider
Re: Deltarpm repository for CentOS 5
#5
Moderator
Joined: 2005/10/28
From UK
Posts: 2671
Quote:

pjwelsh wrote:
This is very cool.


I'll say :)

One of the major gripes with RPM updates has to be downloading the whole package for a 1KB patch to fix some security issue. When applied to large packages (OpenOffice comes to mind), and over multiple servers/workstations, the bandwidth savings soon add up.

Of course once you have more than a few machines to maintain, one normally only downloads updates once and distributes them locally from a central location (well, at least that's what I do), but this is a very neat solution.
_________________
CentOS - The Sysadmins Choice
ELRepo.org - The Community Enterprise Linux Repository
Posted on: 2007/8/31 22:36
Create PDF from Post Print
Top
  •  toracat
      toracat
Re: Deltarpm repository for CentOS 5
#6
Moderator
Joined: 2006/9/3
From California, US
Posts: 4228
If you are interested in deltarpm and would like to contribute, please join the centos-devel mailing list:

http://lists.centos.org/pipermail/centos-devel/2007-September/003831.html

Akemi
_________________
Useful links: Search Forums; Forum FAQ;CentOS Wiki
Posted on: 2007/9/1 16:45
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com