Slashdot Mirror


APT - With Your Favorite Distribution

One of the most-heard complains from people who use distributions like Red Hat, Mandrake or SuSE is the "dependency hell" problem. You want to install an RPM and bang -- you have a dependency problem. There have been a few attempts to overcome dependency problems: SuSE with their YOU (Your Online Update), Mandrake with URPMI, and Redhat with their UP2date program. There is also a solution from Aduva called Aduvizor, but it's not supporting the latest distributions yet. Read on to learn about another interesting solution ... One of the solutions is Ximian Red Carpet (which is available to most of the distributions, freely or by subscription for increased download speed), however Red Carpet has one big problem -- if the package is not on Ximian Red-Carpet servers (like, umm, KDE packages), you're (again) on your own.

Then there is another solution from Connectiva in Brazil, which has made something called APT4RPM -- basically an APT wrapper around RPM database on your machines, so you can use all of Debian's APT features (sans DSELECT feature) to upgrade your packages, or your entire distribution. (So now you can use your favorite distribution AND APT to update it.)

Two open source developers have improved Connectiva's solution to work with ANY RPM-4 based solution, and the [not finished yet but seems pretty stable solution] is at APT4RPM project pages in sourceforge. I have decided to give a test on my Redhat 7.2 machine. I installed the binaries, edited the /etc/apt/sources.list (just remove the # from your distribution's mirror), typed "apt-get dist-update," crossed my fingers -- and lo and behold, 48 new packages were installed, 7 were upgraded, and I only had to press "enter" to start the ball rolling!

So, for those of you who want to test it -- the URL is above (and if you could help with creating mirrors for your favorite distribution - that would be very helpful, thank you), you might want to try it. Just don't forget to read the FAQ before doing anything, and report bugs to the authors. Note: although the binaries are for Red Hat, the SRPMS are right there so you can just recompile it on your favorite distribution. Enjoy.

2 of 386 comments (clear)

  1. Debian? by Millyways · · Score: 0, Redundant

    Some mention of GNU/Debian would have been nice as all apt4rpm is doing is adding the functionality that debian already has.

  2. Er, no, that's not true. by Nailer · · Score: 1, Redundant

    The RPM format at best only provides the name and major version of any dynamic libraries a package requires.

    Er, no. To my knowledge, a package can rely on other packages or a library name - its nto limited to librayr names. Library versions are standard Unix versioning, and the lasic names `.so.3' don't change much across Linux distributions apart from how fresh the distro is - i.e, whether they are there or not.

    You seem to be basing your rant on this misinformation so I won't bother to address the rest of your comments, suffice to say I'm running a fully packages version of last nights CVS GNOME and did not have to think about dependencies for any of the hundred or so packages that are part of it.