yum rocks !!!! :)

With F15 (Fedora 15) in its final stages before release, have been playing around with my F15 system alot more in the past few days.. Recently observed a REAL nice feature in yum, which has made me a BIG BIG fan of it’s..

Had forgotten that i didnt have deltaiso rpm package installed in my system. So, i typed :

applydeltaiso old.iso delta.diso new.iso

and this is the output :

yum installing the package providing the command

Well, as can be seen.. yum found the command in a package, and after permission from the user, installed the required package and the dependencies on its own !!! In my view, its a FANTASTIC feature.. the user doesnt have to worry which package provides the command..

Am not sure if this was there in earlier releases of yum, but its a great great feature 🙂 Glad to have discovered it finally, in case the feature existed since before.. and yes, kudos to the yum team !!

Yum presto plugin rocks!!

Magic of Yum presto plugin

Magic of Yum presto plugin

The Delta rpm feature in yum rocks! Gone are the days when you had to wait, and wait, thanks to the limited net speed available to many amongst us, for the updates to download and then install.. Delta rpm feature enabled by the yum plugin” Presto”, downloads only the changes (in terms of mathematics, the “DELTA” change ) of a package from the earlier version present in your system.

For installing this plug-in, just type in the terminal :

su -c ‘yum install yum-presto’

Once installed, a change is to be made in the fedora-updates.repo, as given below:

su
nano /etc/yum.repos.d/fedora-updates.repo

NOW, comment the mirrorlist line by preceding it with ‘#’ sign and add the following line:

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

And, your done!! The screenshot above shows the immense power of Delta rpms.. For more information, visit:

https://fedorahosted.org/presto/

Database Error while running Yum

Quite a few times, my patience runs out with the net connection provided to us, and in my frustration, i use the magical Ctrl+C combinations to cancel a currently going on yum updating process. And to my horror, the next yum update process results in something like this :

dB Berkeley Error…  Refresh the database.. etc etc

and yum doesnt work only after that.

If your facing a similar problem, not to worry.. yum will be back to square one and onto its effacing best, by running the following commands:

rm -f /var/lib/rpm/__db*        # eliminate cache and locks
rpm –rebuilddb -vv              # recreate primary key indicies

The 2nd command will take sometime to run.. chill.relax and run yum install process or update process without any worries next time 🙂