Making Fedora rpms/yum work – Offline

This is guide relevant to those who wish to spread fedora to friends and loved ones who don’t necessarily always have an internet connection (or a good one atleast). The problem faced in such situations, almost always (talking from my experience), is that there are a huge number of rpms that need to be downloaded to make fedora capable of playing media, and fill it with good stuff like k3b, amarok etc.

This isn’t always possible with the skimpy internet connections that our not-so-tech-savvy aunts have. (We’ll assume that it is our aunt on whose system we need to install fedora for the sake of this guide.)

So, I devised a way of spreading fedora to our aunt’s system, without getting embarrassed¬† by that fact that we weren’t able to run mp3 on their system.

The way to do this, is to install a fresh copy of fedora on our system, and then bring it to perfect shape by installing many more rpms, and while doing this, keeping a copy of the rpms required, and then copying this repository of rpms (which we are sure don’t require any more rpms as dependencies as we install them on our own system in offline mode) on a pen drive and taking it along with the fedora installation media to our aunt’s home. And after installing fedora on her system, we simply install all the rpms on her system.

On our system:
Download all rpms required for the extra packages (the package rpms + dependencies)
yumdownloader --destdir=rpmsForAunt --resolve rpmName(s)


create a service pack of all pending updates or certain rpms using gpk-service-pack

yum install gnome-packagekit-extra


Edit /etc/yum.conf and change the value of keepcache to 1. After the update is done, the downloaded rpm files then can be found in (and copied from) subfolders named “packages” in /var/cache/yum. When you’re done with them you can get rid of them to save disk space with yum clean packages.
On our aunt’s system:

  1. Install fedora.
  2. Install the extra downloaded rpms:
    1. You need to disable all repositories before yum localinstall will work without net access. To do so,
      go to System > Administration > Add/Remove Software and go the System > Software Sources and uncheck all sources.
    2. Installing the rpms:(1 : see footnote)
      cd rpmsForAunt
      yumlocalinstall --nogpgcheck *

      The above command is to be run for every category of rpms below after copying the resultant directories on our Aunt’s system.

For getting all updates:
I wrote a script for downloading all updates (after a fresh install) to a directory:
for i in `yum list updates | grep fc11 | cut -d ' ' -f 1`
echo Now downloading rpms for package $i
yumdownloader --destdir=localUpdate --resolve $i

For getting all media rpms:
rpm -ivh
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-livna
rpm -ivh
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux

(the above is required only so that you (and not your aunt) can download the rpms)
yumdownloader --destdir=localRpmsForMedia --resolve libdvdcss vlc flash-plugin xine xine-lib-extras xine-lib-extras-freeworld mplayer mplayer-gui gecko-mediaplayer mencoder amarok rhythmbox gstreamer-plugins-ugly gstreamer-plugins-bad gstreamer-ffmpeg audacious audacious-plugins-freeworld* k3b

A few more rpms that I use:
yumdownloader --destdir=localRpmsOther system-config-lvm gparted digikam m17n-db-*

(1)I faced an issue while bash was updated using this method. It said transaction failed.
To resolve this, I ran
yum-complete-transaction --clean
rpm -e bash

The above command listed two bash versions (I don’t remember the version numbers), on saying rpm -e bash.version1, it said there are many dependencies, then I tried rpm -e bash.version and it worked. Then, I went back to the yumlocalinstall step and then that worked.

India, and Mr. God

So long since I have written anything. And there’s so much I want to write.

But I ll write about what’s on the top of my mind right now.

Yesterday (Diwali), Rajni aunty, mom’s friend, came to our house. Her son, (Mr. X we’ll call him) went straight to everyone’s feet wishing them Happy Diwali, conjuring a smile on everyone’s face as they blessed him (I know, a strange custom. Hopefully will be prevalent only for one more generation). Then he dashed towards the glass table where we had kept crackers we had dried all day long on the roof. We didn’t buy any crackers this year, we used only what we had from last year.

We had a special matchstick that was a mini-sparkler. Mr. X took that out. I don’t know what possessed him, but what he did next was insane. He lit the match stick, on top of the stack of crackers.

The crackers caught fire. Yes, inside my house. There was a stack of loose electric crackers that caught fire and thus were lighting each other. And all of them started bursting one after the other. The whole commotion went on for around a minute after which the electric crackers ran out. After the smoke settled, I saw a few atom bombs (green coloured crackers filled with gunpowder tightly wrapped with rope) lying on the glass table.

I couldn’t help thinking what might have happened had that the atom bombs gotten lit on the glass table. (Anyone heard of pipe bombs used in delhi blasts? A Hint : Its the shreds that cause the maximum damage. Not the shockwave)

A question to “modern” parents : should children be beaten up for their misdeeds? You decide.

Now, coming back to the title of the post. After the smoke settled, Mom took a broom and swiped all the leftovers to one side. (Our sofa got burnt partially). After swiping the burnt cracker papers to one side, as she was about to swipe them out of the door, Mr. X’s mom says “Don’t swipe them out of the house. It’s considered a sin to clean the house during Diwali.”

After all this. I don’t think God would mind.

Will India ever prosper? Not until our value system and reason is so deeply screwed up with religion and baseless customs.

Here’s an article I read minutes after writing my post, reinforcing what I just wrote.

Talk about punctuality!!

This wednesday, working at Goldman Sachs, I got a call from Santa Fe. The guy asked me when I wanted him to bring my luggage to my house. I said Saturday (yesterday) around 10 am.

Yesterday, he reached here at 9:55. After everything was brought in and kept at the wanted places, he gave me a feedback form. And boy, the first question was :

Were we on time?

The options were :

a) on time b) 5 min late c) 10 min late d) 30 min late

and nothing after that. They DON’T HAVE a concept of getting late more than half an hour!!

Compare that to the Indian based relocation services. What options should their feedback forms have ?

How much late were we?

a) 1 day 2) 2 day 3) 1 week 4) 2 weeks 5) luggage lost in transit!

So many things… so less time…

Hello Banagalore!!!

Anshu came here last week. We had a gr8 time!! He reached here last Saturday. We had an Italian brunch here at a great place named Casa Picolo on CMH road.

We asked Sriram where we could go. He told us about a great place to shop – Brigade road. Me and Anshu first went to MG road and set about searching for his memory card. We found a great lane there to shop which joined M.G. road at the middle from the left. We spent our time till the evening there going from shop to shop. From there, we went to meet one of Anshu’s friend Kriti, at Garuda mall. We took an auto to reach there. At Garuda mall, Anshu bought a few clothes for his interview. After that, she took us to Brigade road. We were walking that road, Anshu stopped suddenly and exclaimed, “I have come here before”. We were on Brigade road the whole afternoon and we didn’t know it!!. And we took an auto to Garuda mall, which was walking distance from there. I wonder which route he took us from. We went to cafe coffee day there, and them came back.

The next day, we went to a great place called Marathalli. It’s a great place for shopping. I got 50% off on my Rebook shoes! And Anshu found the memory card he was searching for the whole day on M.G. the whole day but had found only duplicate, China made cards !

Anshu and Sriram

Next Wednesday my mom is coming, and so now am making a list of places to take her to, and yes, all the above mentioned place are there in the list.

And ya, forgot to mention, I spent the weekend before Anshu’s visit in Google office in K.R. Puram, eating chocos and maggi, and playing pool and foosball.

This album basically summarizes what I did on that week’s Firday (the 13th)¬† :

Time has flown by since I came to Bangalore. It’s already time for me to get ready for my New York trip!

Fedora 9 Released!!!

And it rocks!!

The first thing you notice after fedora 9 is the blazing faaaast startup and shutdown times.

Now, before I say anything else about Fedora 9, here are a few screenshots :

Here’s Gnome¬† in F9 :

Gnome Preview

And here is KDE 4 (finally !!):

KDE 4 Preview

KDE 4 seems to be following the footsteps of some of its latest applications like Basket. The new start menu now acts like that of IPOD. And the inbuilt search as shown in the following video is simply amazing!. The whole desktop has been given a major revamp. And so has been the theme. The widgets on the desktop now act a bit like widgets on Vista.

Among the key features, the feature that i think will prove to be indispensable later in making fedora more famous is the windows fedora live usb creator.

A feature (a release method actually) that really helped me a lot in creating the live DVD is Jigdo. Here is what the official release notes say about Jigdo :

Fedora releases are also available via Jigdo. This distribution method can improve the speed of obtaining the installation ISO images. Instead of waiting for torrent downloads to complete, Jigdo seeks the fastest mirrors it can find via the Fedora Project Mirror Manager infrastructure, and downloads the bits it needs from these mirrors. To optimize seeking these bits, you can tell Jigdo to scan a DVD or CD you already have, and cut down on redundant downloads. This feature becomes particularly useful if you:

1. Download all the test releases and then get the final release, in which case you have 90% of the data already with each subsequent download.

2. Download both the DVD and the CD set, in which case the DVD holds 95% of the data needed for the CD sets.

3. Download any combination of the above.

Anaconda, the installer for fedora, now supports resizing of ntfs, ext3 and ext4 partitions during installation. This will be of great help to windows users. (yes, it supports ext4 now.) Also, it gives an option of installing encrypted partitions. Business users ought to try this, but with caution.
Here is a list of all the new features in fedora 9.

The Gods must be crazy..


I mean, this is Faridabad.. in MAY!!! Last year this time, it was blazing hot with loo making it’s rounds all over India, with people dying of brain fever.

And now, when I come to Faridabad for 10 days, the last time before my job starts, the weather decides to become stormy, windy and rainy.

I caught a throat infection while coming home via Bhilai from NIT Trichy. I was hoping the heat here would cure the infection. But no, God makes sure the weather is such that it only gets worse.

Thank you, O Lord. (:oloo)