Showing posts with label package management. Show all posts
Showing posts with label package management. Show all posts

Saturday, November 28, 2009

My Worst Experience with Fedora GUI

I have been upgrading my parents computer since Fedora 8 by using yum update options.

I decided that before moving to Fedora 12, I should cleanup some of the packages. I decided to use the gui - packagekit and opted for removal of development group and some language packages like arabic which my parents did not need.

Packagekit mentioned that packages depending on these will also be removed. I clicked ok. For a moment, it did seem to me that the number of packages meant for removal was larger than I had expected. Anyway, I could always fix the problem if some needed package was removed.

After 20 minutes or so, packagekit had done its job. I could find very few packages. I decided check what was installed and rpm was missing! yum was missing.

All the rpm packages were present in /var/cache but there was no way I could use them. The machine had no cd drive. Anyway, I found that I had no installation media for Fedora 11.

So, the only option which came to me - clean install Fedora 12. I downloaded the net installation cd. Removed a cd drive from another computer and installed it on my parents computer. The installation is in progress for the last 6 hours.

Dependencies - Shared libraries should be treated differently

I install a package and required dependencies are installed. The package manager may even ask me if that is OK for me. At least I agree without even looking except for the size of the download.

If I want the package, do I have a choice? How much information do I want?

I believe that shared libraries should be handled differently and should be translucent. Package management should highlight dependencies in packages other than shared libraries. We should be able to examine shared library dependencies provided we want to see details.

Treating shared libraries differently can have several advantages:
  • They could be implicitly removed if no package requires them
  • If a new package requires a different version of a shared library, it should be possible. It should not force an update of the existing library and a cascading upgrade of various packages.

Removing implicitly installed packages

It is easy to install a new package. Yum/synaptic will find the dependencies and install them.

How about removing a package?

It is hard to remove packages which were installed because of dependencies. E.g. install mplayer and dozens of packages get added. Now, remove mplayer but the packages installed implicitly remain installed.

On Fedora, package-cleanup provides some assistance but not enough.

Wednesday, November 25, 2009

An Analysis of an Upgrade to Fedora 12

The upgrade to Fedora 12 required over 2gb of download. I wanted to measure some of the changes in the upgrade for my usage.

Number of packages installed increased by 131 packages. (F11:2232, F12:2363)

Some packages like the kernel and gpg-keys have multiple versions installed and some have both x64 and i386 architecture packages installed. Hence, let us consider the unique package names.

Unique package names increased by 121 packages (F11:2087, F12:2208)

26 packages present in F11 were removed, while 147 were added.

Among the common packages, 1289 had the same version in both F11 and F12. They differed in the release value.

Of these, 343 differed in the version after the 2nd decimal place and can be regarded as fairly minor version changes.

62 differed in the major version number and 380 in the first minor version, e.g. gnome desktop going for 2.26.x to 2.28.x. A number of packages, e.g. sugar packages, have a single digit version number.

How many of these 442 packages could not have been incorporated in Fedora 11?

Would delta rpm packages not be feasible across the upgrade?

Could there be better ways of managing packages which can handle additional usage patterns?

I plan to explore some simple usage patterns I have found hard to do with current schemes of distributions. (I am also planning to install Arch linux as an example of a rolling distribution to see if they meet such needs.)