Using apt in an RPM world

•June 23, 2008 • Leave a Comment

Everytime I am surprised that people don’t know that apt-get works on RPM-based distributions and works much better than the alternatives. Especially in a CentOS/RHEL environment where you have various distribution releases running, apt-rpm allows you to use the same apt version and the same apt features across CentOS/RHEL 2.1, 3, 4 and 5.

In an attempt to persuade you to try out apt, let me denounce some myths about the current apt-rpm:

  • it can do multilib (coexist 32bit and 64bit)
  • it does check GPG keys on packages
  • it can work with repomd repositories (as used by yum)
  • it does work a lot faster than yum
  • it is being maintained (although could use more hands)
  • it has python bindings
  • is has a graphical interface (synaptics)
  • it handles multiple repositories much better
  • it allows to pin packages by version or repository (and manages cross-dependencies)

Now, because I can say it works great but you may not believe me, let me make it very simple for you to try it out on CentOS. Here is a quickstart guide…

First we start off installing apt from RPMforge. Follow the guide on the CentOS wiki to configure RPMforge for your system. Then do:

yum install apt

(or alternatively install the latest apt RPM package from http://packages.sw.be/apt/ for your distribution)

and then edit the file /etc/apt/sources.list.d/os.list and add for CentOS:

repomd http://mirror.centos.org/ centos/$(VERSION)/os/$(ARCH)
repomd http://mirror.centos.org/ centos/$(VERSION)/updates/$(ARCH)
repomd http://mirror.centos.org/ centos/$(VERSION)/extras/$(ARCH)

This adds the official CentOS os, updates and extras repositories.

Now you can use it, for example do:

apt-get update

to update the locally cached metadata, or do:

apt-get upgrade

to upgrade your system with the latest updates, or yet, do:

apt-get install synaptic

to install a package named synaptic. Try:

synaptic

to start synaptic and use the graphical interface (also available from System > Administration > Synaptic Package Management)

There are a few commands that use the locally cached metadata, the following apt-cache commands are used most often:

apt-cache search keyword

to search the local metadata for packages related to keyword, or:

apt-cache policy package

to show the different versions of a certain package that is offered.

PS And let me also add that the project name is apt-rpm, not apt4rpm (a complete different project).

•June 20, 2008 • Leave a Comment

In the darkness of 13/06/2008 police discovered a dead body. The body or may be some parts of a body. There was no head and both hands were amputated. No cloths were on the body except a blue underwear. I am posting the pic to get your thoughts on why he would have killed so cruelly ……….any idea?????

The 10 Commandments for New Linux Users

•August 19, 2007 • Leave a Comment

Title pretty much says it all.

read more | digg story

Official Ubuntu Linux Forums gain 400 members per day

•July 23, 2007 • Leave a Comment

Over 21,000 members per month… and not everyone who uses it signs up! Could they be leader in taking out Microsoft?

read more | digg story

Next Ubuntu LTS Release In 2008 (Ubuntu 8.04 LTS)

•July 23, 2007 • Leave a Comment

Mark Shuttleworth has just announced during his keynote at Ubuntu Live 2007 that the next Ubuntu LTS (Long Term Support) release will be Ubuntu 8.04.

read more | digg story

Microsoft agrees OpenOffice and MS Office have basically the same features

•July 23, 2007 • Leave a Comment

Microsoft defines StarOffice/OpenOffice to have “substantially the same features and functionality” as MS Office. The same goes for Wine, OpenXchange and Mono and their MS counterparts. So who wants to argue OSS to be inferior if even Microsoft can’t see any significant difference?

read more | digg story

Who copied who?

•July 22, 2007 • Leave a Comment

After Avant Window Navigator recently added a depth effect, the popular Linux desktop application received a rather large amount of flak for using the same 3D effect as Apple
’s upcoming release of OS X. But things aren’t always what they seem, and the example proves two important truths about the technology industry.

read more | digg story

15 Ways to Keep Your Brain in Shape

•July 2, 2007 • Leave a Comment

It’s simple. Your brain is at the center of everything you do. It
’s both the supercomputer that runs your complex life and the tender organ that houses your soul. By engaging in the right activities, you can increase your memory, improve your problem-solving skills, and boost your creativity.

read more | digg story

Biosphere

•May 5, 2007 • Leave a Comment

How would you change your private life to protect the environment?
http://biosphere.freehostia.com/WordPress/

read more | digg story

Ars Technica Reviews Pidgin 2.0

•May 5, 2007 • Leave a Comment

Ars reviews Pidgin 2.0, the latest release of the multiplatform IM client formerly known as Gaim. It’s open source and customizable—we even got it working with Twitter.

read more | digg story