• 2 min read
  • Prestro is a new project that bridges the gap between deltarpm and yum. Now only will using yum-presto save you lots of bandwidth, but it will cut down on the time it takes to perform updates!

    Need more help or want to ask a question? Discuss this topic here.

    A little background information

    Delta RPMs (DRPMs) are very similar to binary (regular) RPMs. The main difference is that DRPMs contain only the changes between two versions of an RPM package. This allows you to do full updates in a lot less time - Instead of downloading a full 10MB for an update where only 50kb of content changed, for example, you can now download only that 50kb of change and apply it to your system.

    Not only will you save on bandwidth since you're only downloading in the changes in a package, but you'll also cut down on the time it takes to download and apply the packages.

    Presto is a project which brings deltarpm and yum together; In other words, letting you use yum to apply DRPMs.

    Installing yum-presto

    The first step toward setting up Presto is installing the yum plugin:

    yum -y install yum-presto

    Configure the Updates repository

    Next, we need to configure your updates repository to download deltarpm packages instead of the full ones. In the /etc/yum.repos.d/fedora-updates.repo file you'll find two lines that looks like this in the [updates] section:

    #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/$basearch/
    mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-fX&arch=$basearch

    Add a pound character to the start of the mirrorlist line so that it looks like this:

    #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/$basearch/
    #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-fX&arch=$basearch

    Finally, add a new line just under the "#mirrorlist=" line we just edited:

    mirrorlist=http://presto-mirrors.anmar.eu.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch 

    The pound sign makes Yum ignore the line that it's on, so essentially we're telling yum to ignore the base repository and any mirrors. The line which was added tells yum to use the presto-enabled mirrors instead.

     
    That's it! Now run you can use yum or yumex as normal and benefit from the advantages of deltarpms.
     
    Need more help or want to ask a question? Discuss this topic here.