Using apt in an RPM world
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:
- works on RPM packages
- can do multilib (coexist 32bit and 64bit)
- does check GPG keys on packages
- can work with repomd repositories (as used by yum)
- does work a lot faster than yum
- is being maintained (although could use more hands)
- has python bindings
- has a graphical interface (synaptics)
- handles multiple repositories much better
- allows to pin packages by version or repository (and manages cross-dependencies)
- existed years before yum (and was the only depsolver for a few years in the Red Hat world)
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...
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:
This adds the official CentOS os, updates and extras repositories.
Now you can use it, for example do:
to update the locally cached metadata, or do:
to upgrade your system with the latest updates, or yet, do:
apt-get install synaptic
to install a package named synaptic. Try:
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).