Apt-For-RPM-Howto

Submitted by falko (Contact Author) (Forums) on Fri, 2005-04-08 17:30. :: Linux

Apt-For-RPM-Howto

Version 1.5
Author: Falko Timme <ft [at] falkotimme [dot] com>
Last edited 10/17/2005

In this short tutorial I will show how to install and use Debian's package manager apt on various rpm-based distributions like Fedora, Mandrake (or Mandriva, they changed their name...), RedHat, SUSE, and Yellow Dog Linux. apt for rpm is also known as apt4rpm, or aptrpm.

Why do I want to use apt with rpm instead of just rpm? The answer is easy: rpm is able to signal package dependencies but it cannot resolve them, and that's where apt comes in the picture. By resolving all dependencies automatically it saves me a lot of trouble and time. It lets me install, remove or upgrade packages with just a single command, and I can even update my whole Linux distribution to a new release! To find out more about apt's capabilities, please have a loot at http://www.debian.org/doc/manuals/apt-howto/ch-apt-get.en.html.

Apt has originally been ported from Debian to the rpm-based distribution of Conectiva which uses it now as their package manager in their distribution. You can find more information about it on https://moin.conectiva.com.br/AptRpm. The project that made this port available to other rpm-based distributions is called apt4rpm.

This tutorial is split into two parts: in the first I will demonstrate how to install and use apt based on an example (apt on SUSE 9.2), and in the second part I will give you an overview of the packages to install and the package repositories for each distribution mentioned above.

1 Example: Install Apt On SUSE 9.2

Run

rpm -ivh ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/9.2-i386/RPMS.suser-rbos/\
apt-libs-0.5.15cnc6-rb.suse092.6.i586.rpm
rpm -ivh ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/9.2-i386/RPMS.suser-rbos/\
apt-0.5.15cnc6-rb.suse092.6.i586.rpm

To check that the installtion was ok you can execute

rpm -qa | grep -E "^apt-"

It should show the two packages you have just installed.

Now apt is installed on your system. We have to tell apt where our package repositorie(s) is/are from which it will fetch new packages. This is done by editing/etc/apt/sources.list. It should contain the following line:

rpm ftp://ftp.gwdg.de/pub/linux/suse/apt/ SuSE/9.2-i386 base update security

Comment out all other lines in this file. This tells apt to use packages that belong to the base system as well as updates and security updates. Please note that these options differ from distribution to distribution (see the overview).

Run

apt-get update

apt will now fetch a list of all available packages from the repository server.

Now let's say we want to install SpamAssassin but don't know how the package is called. No problem, we can search for available packages:

apt-cache search spamassassin

This is the output:

amavisd-new - High-Performance E-Mail Virus Scanner
perl-spamassassin - the perl modules for using spamassassin within an own perl script
razor-agents - SPAM catalogue inquiry and update tool
spamassassin - SpamAssassin is an extensible email filter which is used to identify spam
sylpheed-claws - An Email client similar to Eudora on Windows

We guessed right, our package is called spamassassin, so let's install it:

apt-get install spamassassin

Let's see what happens:

Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  perl-Digest-HMAC perl-Net-DNS perl-spamassassin
The following NEW packages will be installed:
  perl-Digest-HMAC perl-Net-DNS perl-spamassassin spamassassin
0 upgraded, 4 newly installed, 0 removed and 52 not upgraded.
Need to get 965kB of archives.
After unpacking 2835kB of additional disk space will be used.
Do you want to continue? [Y/n]

apt discovered that spamassassin needs some extra packages (perl-Digest-HMAC perl-Net-DNS perl-spamassassin) and asks if you want to install them. Answer with Y. Now all needed packages will be installed:

Get:1 ftp://ftp.gwdg.de SuSE/9.2-i386/base perl-Digest-HMAC 1.01-494 [21.3kB]
Get:2 ftp://ftp.gwdg.de SuSE/9.2-i386/base perl-Net-DNS 0.48-2 [215kB]
Get:3 ftp://ftp.gwdg.de SuSE/9.2-i386/base perl-spamassassin 3.0.0-3 [623kB]
Get:4 ftp://ftp.gwdg.de SuSE/9.2-i386/base spamassassin 3.0.0-3 [105kB]
Fetched 965kB in 15s (60.7kB/s)
Checking GPG signatures...
Committing changes...
Preparing...                ########################################### [100%]
   1:perl-Digest-HMAC       ########################################### [ 25%]
   2:perl-Net-DNS           ########################################### [ 50%]
   3:perl-spamassassin      ########################################### [ 75%]
   4:spamassassin           ########################################### [100%]
Updating etc/sysconfig/spamd...
Done.
apt executing: /sbin/SuSEconfig
Starting SuSEconfig, the SuSE Configuration Tool...
...

If you want to remove spamassassin simply run

apt-get remove spamassassin

To upgrade all installed packages on your server to the newest versions available in the repository, you have to execute

apt-get upgrade

(Do not mix this up with apt-get update (see above)! apt-get update is used for updating the list of available packages after /etc/apt/sources.list has been changed, and also for updating the list of available packages with the latest changes in the package repositories mentioned in /etc/apt/sources.list.)

2 Overview: Apt For Fedora, Mandrake/Mandriva, SUSE, RedHat And Yellow Dog Linux

<!--//-->
Fedora Core 4
Apt-rpms: Where? http://ftp.freshrpms.net/pub/fedora/linux/extras/4/
Installation rpm -ivh http://ftp.freshrpms.net/pub/fedora/linux/extras/4/i386/\
apt-0.5.15cnc7-6.fc4.i386.rpm
Check Installation rpm -qa | grep -E "^apt-0"

Content of
/etc/apt/sources.list

rpm http://ayo.freshrpms.net fedora/linux/4/i386 core updates freshrpms
rpm http://ayo.freshrpms.net fedora/linux/4/i386 tupdates
rpm-src http://ayo.freshrpms.net fedora/linux/4/i386 core updates freshrpms
rpm-src http://ayo.freshrpms.net fedora/linux/4/i386 tupdates

Further Information

http://freshrpms.net/apt/
http://apt.freshrpms.net/
Fedora Core 3
Apt-rpms: Where? http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/3/apt/
Installation rpm -ivh http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/3/apt/\
apt-0.5.15cnc6-1.1.fc3.fr.i386.rpm
Check Installation rpm -qa | grep -E "^apt-0"

Content of
/etc/apt/sources.list

rpm http://ayo.freshrpms.net fedora/linux/3/i386 core updates freshrpms
rpm http://ayo.freshrpms.net fedora/linux/3/i386 tupdates
rpm-src http://ayo.freshrpms.net fedora/linux/3/i386 core updates freshrpms
rpm-src http://ayo.freshrpms.net fedora/linux/3/i386 tupdates

Further Information

http://freshrpms.net/apt/
http://apt.freshrpms.net/
Fedora Core 2
Apt-rpms: Where? http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/2/apt/
Installation rpm -ivh http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/2/apt/\
apt-0.5.15cnc6-1.1.fc2.fr.i386.rpm
Check Installation rpm -qa | grep -E "^apt-0"

Content of
/etc/apt/sources.list

rpm http://ayo.freshrpms.net fedora/linux/2/i386 core updates freshrpms
rpm http://ayo.freshrpms.net fedora/linux/2/i386 tupdates
rpm-src http://ayo.freshrpms.net fedora/linux/2/i386 core updates freshrpms
rpm-src http://ayo.freshrpms.net fedora/linux/2/i386 tupdates

Further Information

http://freshrpms.net/apt/
http://apt.freshrpms.net/
Fedora Core 1
Apt-rpms: Where? http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/1/apt/
Installation rpm -ivh http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/1/apt/\
apt-0.5.15cnc6-0.1.fc1.fr.i386.rpm
Check Installation rpm -qa | grep -E "^apt-0"

Content of
/etc/apt/sources.list

rpm http://ayo.freshrpms.net fedora/linux/1/i386 core updates freshrpms
rpm http://ayo.freshrpms.net fedora/linux/1/i386 tupdates
rpm-src http://ayo.freshrpms.net fedora/linux/1/i386 core updates freshrpms
rpm-src http://ayo.freshrpms.net fedora/linux/1/i386 tupdates

Further Information

http://freshrpms.net/apt/
http://apt.freshrpms.net/
Mandriva 2006
Apt-rpms: Where? ftp://ftp.lip6.fr/pub/linux/distributions/Mandrakelinux/official/2006.0/i586/media/contrib/
Installation rpm -ivh ftp://ftp.lip6.fr/pub/linux/distributions/Mandrakelinux/official/\
2006.0/i586/media/contrib/libapt-pkg0-0.5.15cnc6-10mdk.i586.rpm
rpm -ivh ftp://ftp.lip6.fr/pub/linux/distributions/Mandrakelinux/official/\
2006.0/i586/media/contrib/apt-common-0.5.15cnc6-10mdk.i586.rpm
rpm -ivh ftp://ftp.lip6.fr/pub/linux/distributions/Mandrakelinux/official/\
2006.0/i586/media/contrib/apt-0.5.15cnc6-10mdk.i586.rpm
Check Installation rpm -qa | grep -E "^apt-0|^libapt-"

Content of
/etc/apt/sources.list

rpm ftp://ftp.lip6.fr/pub/linux/distributions/Mandrakelinux/official/2006.0/i586/media/ media_info/hdlist_main main

Further Information

List of mirrors: http://www1.mandrivalinux.com/en/ftp.php3
Mandrake 10.2
Apt-rpms: Where? ftp://ftp.lip6.fr/pub/linux/distributions/Mandrakelinux/official/10.2/i586/media/contrib/
Installation rpm -ivh ftp://ftp.lip6.fr/pub/linux/distributions/Mandrakelinux/official/10.2/\
i586/media/contrib/libapt-pkg0-0.5.15cnc6-5mdk.i586.rpm
rpm -ivh ftp://ftp.lip6.fr/pub/linux/distributions/Mandrakelinux/official/10.2/\
i586/media/contrib/apt-0.5.15cnc6-5mdk.i586.rpm
Check Installation rpm -qa | grep -E "^apt-0|^libapt-"

Content of
/etc/apt/sources.list

rpm ftp://ftp.lip6.fr/pub/linux/distributions/Mandrakelinux/official/10.2/i586/media/ media_info/hdlist_main main

Further Information

List of mirrors: http://www1.mandrivalinux.com/en/ftp.php3
Mandrake 10.1
Apt-rpms: Where? ftp://ftp.lip6.fr/pub/linux/distributions/Mandrakelinux/official/10.1/i586/media/contrib/
Installation rpm -ivh ftp://ftp.lip6.fr/pub/linux/distributions/Mandrakelinux/official/10.1/\
i586/media/contrib/libapt-pkg0-0.5.15cnc6-3mdk.i586.rpm
rpm -ivh ftp://ftp.lip6.fr/pub/linux/distributions/Mandrakelinux/official/10.1/\
i586/media/contrib/apt-0.5.15cnc6-3mdk.i586.rpm
Check Installation rpm -qa | grep -E "^apt-0|^libapt-"

Content of
/etc/apt/sources.list

rpm ftp://ftp.lip6.fr/pub/linux/distributions/Mandrakelinux/official/10.1/i586/media/ media_info/hdlist_main main

Further Information

List of mirrors: http://www1.mandrivalinux.com/en/ftp.php3
Mandrake 10.0
Apt-rpms: Where? ftp://194.199.20.114/linux/Mandrake/10.0/contrib/i586/
Installation rpm -ivh ftp://194.199.20.114/linux/Mandrake/10.0/contrib/i586/\
libapt-pkg0-0.5.15cnc5-4mdk.i586.rpm
rpm -ivh ftp://194.199.20.114/linux/Mandrake/10.0/contrib/i586/\
apt-0.5.15cnc5-4mdk.i586.rpm
Check Installation rpm -qa | grep -E "^apt-0|^libapt-"

Content of
/etc/apt/sources.list

rpm ftp://ftp.sunet.se/pub/Linux/distributions/mandrakelinux/official/10.0/i586/Mandrake/ base/hdlist RPMS

Further Information

List of mirrors: http://www1.mandrivalinux.com/en/ftp.php3
Mandrake 9.2
Apt-rpms: Where? ftp://194.199.20.114/linux/Mandrake/9.2/contrib/i586/
Installation rpm -ivh ftp://194.199.20.114/linux/Mandrake/9.2/contrib/i586/\
libapt-pkg0-0.5.5cnc6-2mdk.i586.rpm
rpm -ivh ftp://194.199.20.114/linux/Mandrake/9.2/contrib/i586/\
apt-0.5.5cnc6-2mdk.i586.rpm
Check Installation rpm -qa | grep -E "^apt-0|^libapt-"

Content of
/etc/apt/sources.list

rpm ftp://ftp.sunet.se/pub/Linux/distributions/mandrakelinux/official/9.2/i586/Mandrake/ base/hdlist RPMS

Further Information

List of mirrors: http://www1.mandrivalinux.com/en/ftp.php3
Mandrake 9.1
Apt-rpms: Where? ftp://194.199.20.114/linux/Mandrake/9.1/contrib/i586/
Installation rpm -ivh ftp://194.199.20.114/linux/Mandrake/9.1/contrib/i586/\
libapt0.5-0.5.5cnc3-1mdk.i586.rpm
rpm -ivh ftp://194.199.20.114/linux/Mandrake/9.1/contrib/i586/\
apt-0.5.5cnc3-1mdk.i586.rpm
Check Installation rpm -qa | grep -E "^apt-0|^libapt-"

Content of
/etc/apt/sources.list

rpm ftp://ftp.sunet.se/pub/Linux/distributions/mandrakelinux/official/9.1/i586/Mandrake/ base/hdlist RPMS

Further Information

List of mirrors: http://www1.mandrivalinux.com/en/ftp.php3
RedHat 9
Apt-rpms: Where? http://ftp.freshrpms.net/pub/freshrpms/redhat/9/apt/
Installation rpm -ivh http://ftp.freshrpms.net/pub/freshrpms/redhat/9/apt/\
apt-0.5.5cnc6-fr1.i386.rpm
Check Installation rpm -qa | grep -E "^apt-0"

Content of
/etc/apt/sources.list

rpm http://ayo.freshrpms.net redhat/9/i386 os updates freshrpms
rpm-src http://ayo.freshrpms.net redhat/9/i386 os updates freshrpms

Further Information

http://freshrpms.net/apt/
http://apt.freshrpms.net/
RedHat 8.0
Apt-rpms: Where? http://ftp.freshrpms.net/pub/freshrpms/redhat/8.0/apt/
Installation rpm -ivh http://ftp.freshrpms.net/pub/freshrpms/redhat/8.0/apt/\
apt-0.5.5cnc6-fr0.rh80.1.i386.rpm
Check Installation rpm -qa | grep -E "^apt-0"

Content of
/etc/apt/sources.list

rpm http://ayo.freshrpms.net redhat/8.0/i386 os updates freshrpms
rpm-src http://ayo.freshrpms.net redhat/8.0/i386 os updates freshrpms

Further Information

http://freshrpms.net/apt/
http://apt.freshrpms.net/
RedHat 7.3
Apt-rpms: Where? http://ftp.freshrpms.net/pub/freshrpms/redhat/7.3/apt/
Installation rpm -ivh http://ftp.freshrpms.net/pub/freshrpms/redhat/7.3/apt/\
apt-0.5.5cnc5-fr0.rh73.2.i386.rpm
Check Installation rpm -qa | grep -E "^apt-0"

Content of
/etc/apt/sources.list

rpm http://ayo.freshrpms.net redhat/7.3/i386 os updates freshrpms
rpm-src http://ayo.freshrpms.net redhat/7.3/i386 os updates freshrpms

Further Information

http://freshrpms.net/apt/
http://apt.freshrpms.net/
RedHat 7.2
Apt-rpms: Where? http://ftp.freshrpms.net/pub/freshrpms/redhat/7.2/apt/
Installation rpm -ivh http://ftp.freshrpms.net/pub/freshrpms/redhat/7.2/apt/\
apt-0.3.19cnc55-fr7.i386.rpm
Check Installation rpm -qa | grep -E "^apt-0"

Content of
/etc/apt/sources.list

rpm http://ayo.freshrpms.net redhat/7.2/i386 os updates freshrpms
rpm-src http://ayo.freshrpms.net redhat/7.2/i386 os updates freshrpms

Further Information

http://freshrpms.net/apt/
http://apt.freshrpms.net/
RedHat 7.0
Apt-rpms: Where? http://ftp.freshrpms.net/pub/freshrpms/redhat/7.0/apt/
Installation rpm -ivh http://ftp.freshrpms.net/pub/freshrpms/redhat/7.0/apt/\
apt-0.5.5cnc6-fr0.rh70.1.i386.rpm
Check Installation rpm -qa | grep -E "^apt-0"

Content of
/etc/apt/sources.list

rpm http://ayo.freshrpms.net redhat/7.0/i386 os updates freshrpms
rpm http://ayo.freshrpms.net redhat/7.0/i386 powertools dma
rpm-src http://ayo.freshrpms.net redhat/7.0/i386 os updates freshrpms
rpm-src http://ayo.freshrpms.net redhat/7.0/i386 powertools dma

Further Information

http://freshrpms.net/apt/
http://apt.freshrpms.net/
RedHat 6.2
Apt-rpms: Where? http://ftp.freshrpms.net/pub/freshrpms/redhat/6.2/apt/
Installation rpm -ivh http://ftp.freshrpms.net/pub/freshrpms/redhat/6.2/apt/\
apt-0.5.4cnc7-fr0.62.1.i386.rpm
Check Installation rpm -qa | grep -E "^apt-0"

Content of
/etc/apt/sources.list

rpm http://ayo.freshrpms.net redhat/6.2/i386 os updates freshrpms
rpm http://ayo.freshrpms.net redhat/6.2/i386 powertools
rpm-src http://ayo.freshrpms.net redhat/6.2/i386 os updates freshrpms
rpm-src http://ayo.freshrpms.net redhat/6.2/i386 powertools

Further Information

http://freshrpms.net/apt/
http://apt.freshrpms.net/
RedHat Enterprise Linux 3 (RHEL 3)
Apt-rpms: Where? ftp://ftp.uninett.no/pub/linux/apt/RHEL/3-i386/RPMS.base/
Installation rpm -ivh ftp://ftp.uninett.no/pub/linux/apt/RHEL/3-i386/RPMS.base/\
apt-0.5.15cnc3-2.RHEL3.i386.rpm
Check Installation rpm -qa | grep -E "^apt-0"

Content of
/etc/apt/sources.list

rpm ftp://ftp.uninett.no/linux/RHEL/apt RHEL/3-i386 base
rpm-src ftp://ftp.uninett.no/linux/RHEL/apt RHEL/3-i386 base

Further Information

http://freshrpms.net/apt/
http://apt.freshrpms.net/
SUSE 9.3
Apt-rpms: Where? ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/9.3-i386/RPMS.suser-rbos/
Installation rpm -ivh ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/9.3-i386/RPMS.suser-rbos/\
apt-libs-0.5.15cnc7-0.suse093.rb0.i586.rpm
rpm -ivh ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/9.3-i386/RPMS.suser-rbos/\
apt-0.5.15cnc7-0.suse093.rb0.i586.rpm
Check Installation rpm -qa | grep -E "^apt-"

Content of
/etc/apt/sources.list

rpm ftp://ftp.gwdg.de/pub/linux/suse/apt/ SuSE/9.3-i386 base update security

Further Information

http://linux01.gwdg.de/apt4rpm/
SUSE 9.2
Apt-rpms: Where? ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/9.2-i386/RPMS.suser-rbos
Installation rpm -ivh ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/9.2-i386/RPMS.suser-rbos/\
apt-libs-0.5.15cnc6-rb.suse092.6.i586.rpm
rpm -ivh ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/9.2-i386/RPMS.suser-rbos/\
apt-0.5.15cnc6-rb.suse092.6.i586.rpm
Check Installation rpm -qa | grep -E "^apt-"

Content of
/etc/apt/sources.list

rpm ftp://ftp.gwdg.de/pub/linux/suse/apt/ SuSE/9.2-i386 base update security

Further Information

http://linux01.gwdg.de/apt4rpm/
SUSE 9.1
Apt-rpms: Where? ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/9.1-i386/RPMS.suser-rbos/
Installation rpm -ivh ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/9.1-i386/RPMS.suser-rbos/\
apt-libs-0.5.15cnc6-0.suse091.rb.5.i586.rpm
rpm -ivh ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/9.1-i386/RPMS.suser-rbos/\
apt-0.5.15cnc6-0.suse091.rb.5.i586.rpm
Check Installation rpm -qa | grep -E "^apt-"

Content of
/etc/apt/sources.list

rpm ftp://ftp.gwdg.de/pub/linux/suse/apt/ SuSE/9.1-i386 base update security

Further Information

http://linux01.gwdg.de/apt4rpm/
SUSE 9.0
Apt-rpms: Where? ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/9.0-i386/RPMS.suser-rbos/
Installation

rpm -ivh ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/9.0-i386/RPMS.suser-rbos/\
apt-libs-0.5.15cnc7-0.suse090.rb.0.i586.rpm
rpm -ivh ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/9.0-i386/RPMS.suser-rbos/\
apt-0.5.15cnc7-0.suse090.rb.0.i586.rpm

Check Installation rpm -qa | grep -E "^apt-"

Content of
/etc/apt/sources.list

rpm ftp://ftp.gwdg.de/pub/linux/suse/apt/ SuSE/9.0-i386 base update security

Further Information

http://linux01.gwdg.de/apt4rpm/
SUSE 8.2
Apt-rpms: Where? ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/8.2-i386/RPMS.suser-rbos/
Installation rpm -ivh ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/8.2-i386/RPMS.suser-rbos/\
apt-libs-0.5.5cnc6-rb3.i386.rpm
rpm -ivh ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/8.2-i386/RPMS.suser-rbos/\
apt-0.5.5cnc6-rb3.i386.rpm
Check Installation rpm -qa | grep -E "^apt-"

Content of
/etc/apt/sources.list

rpm ftp://ftp.gwdg.de/pub/linux/suse/apt/ SuSE/8.2-i386 base update security

Further Information

http://linux01.gwdg.de/apt4rpm/
SUSE 8.1
Apt-rpms: Where? ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/8.1-i386/RPMS.suser-rbos/
Installation rpm -ivh ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/8.1-i386/RPMS.suser-rbos/\
apt-libs-0.5.5cnc6-rb2.i386.rpm
rpm -ivh ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/8.1-i386/RPMS.suser-rbos/\
apt-0.5.5cnc6-rb2.i386.rpm
Check Installation rpm -qa | grep -E "^apt-"

Content of
/etc/apt/sources.list

rpm ftp://ftp.gwdg.de/pub/linux/suse/apt/ SuSE/8.1-i386 base update security

Further Information

http://linux01.gwdg.de/apt4rpm/
SUSE 8.0
Apt-rpms: Where? http://linux01.gwdg.de/apt4rpm/apt-0.5.4/
Installation rpm -ivh http://linux01.gwdg.de/apt4rpm/apt-0.5.4/RPMS.tested/\
apt-0.5.4cnc9-1cl.i386.rpm
rpm -ivh http://linux01.gwdg.de/apt4rpm/apt-0.5.4/RPMS.tested/\
apt-devel-0.5.4cnc9-1cl.i386.rpm
Check Installation rpm -qa | grep -E "^apt-"

Content of
/etc/apt/sources.list

rpm ftp://ftp.gwdg.de/pub/linux/suse/apt/ SuSE/8.0-i386 base update security

Further Information

http://linux01.gwdg.de/apt4rpm/
SUSE 7.3
Apt-rpms: Where? http://linux01.gwdg.de/apt4rpm/apt-0.5.4/
Installation rpm -ivh http://linux01.gwdg.de/apt4rpm/apt-0.5.4/RPMS.tested/\
apt-0.5.4cnc9-1cl.i386.rpm
rpm -ivh http://linux01.gwdg.de/apt4rpm/apt-0.5.4/RPMS.tested/\
apt-devel-0.5.4cnc9-1cl.i386.rpm
Check Installation rpm -qa | grep -E "^apt-"

Content of
/etc/apt/sources.list

rpm ftp://ftp.gwdg.de/pub/linux/suse/apt/ SuSE/7.3-i386 base update security

Further Information

http://linux01.gwdg.de/apt4rpm/
Yellow Dog Linux 4.0
Apt-rpms: Where? http://ftp.freshrpms.net/pub/freshrpms/yellowdog/4.0/apt/
Installation rpm -ivh http://ftp.freshrpms.net/pub/freshrpms/yellowdog/4.0/apt/\
apt-0.5.15cnc6-1.0.yd4.fr.ppc.rpm
Check Installation rpm -qa | grep -E "^apt-0"

Content of
/etc/apt/sources.list

rpm http://ayo.freshrpms.net yellowdog/4.0/ppc os updates freshrpms
rpm-src http://ayo.freshrpms.net yellowdog/4.0/ppc os updates freshrpms

Further Information

http://freshrpms.net/apt/
http://apt.freshrpms.net/
Yellow Dog Linux 3.0
Apt-rpms: Where? http://ftp.freshrpms.net/pub/freshrpms/yellowdog/3.0/apt/
Installation rpm -ivh http://ftp.freshrpms.net/pub/freshrpms/yellowdog/3.0/apt/\
apt-0.5.15cnc5-0.2.fr.ppc.rpm
Check Installation rpm -qa | grep -E "^apt-0"

Content of
/etc/apt/sources.list

rpm http://ayo.freshrpms.net yellowdog/3.0/ppc os updates freshrpms
rpm-src http://ayo.freshrpms.net yellowdog/3.0/ppc os updates freshrpms

Further Information

http://freshrpms.net/apt/
http://apt.freshrpms.net/
Yellow Dog Linux 2.3
Apt-rpms: Where? http://ftp.freshrpms.net/pub/freshrpms/yellowdog/2.3/apt/
Installation rpm -ivh http://ftp.freshrpms.net/pub/freshrpms/yellowdog/2.3/apt/\
apt-0.5.5cnc4.1-fr1.ppc.rpm
Check Installation rpm -qa | grep -E "^apt-0"

Content of
/etc/apt/sources.list

Fix me.

Further Information

http://freshrpms.net/apt/
http://apt.freshrpms.net/

Links


Original location of this document: http://www.falkotimme.com/howtos/apt_for_rpm/


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by Anonymous (not registered) on Thu, 2006-01-19 23:50.

This will resolve all dependencies in rpm systems:

http://linux.duke.edu/projects/yum/


yes another front end for RPM, but one that works.

Submitted by Anonymous on Thu, 2005-04-14 21:54.

Come on, urpmi overrules apt.

urpmi.update -a to update all sources

urpmi --auto-select to upgrade all packages.


It is used to update security packages, but I also use it to install from PLF (http://plf.zarb.org/) or even to upgrade from version to version.

Submitted by Anonymous on Wed, 2005-08-03 13:08.

urpmi apt4rpm

will get you apt on your mandriva system.

But I agree, urpmi does it's thing fine.

Rob a.k.a. aRTee

www.mandrake.tips.4.free.fr

Submitted by Anonymous on Thu, 2005-04-14 08:48.
This is a really good standalone guide to apt http://www.nl.debian.org/doc/user-manuals#apt-howto
Submitted by Anonymous on Wed, 2005-04-13 00:07.

Great... so if I don't trust when `rpm -ivh ...` when it says it finished, then I have to do `rpm -qa ...` to see if it really installed. But you didn't say what to do next if I didn't trust `rpm -qa ...` ?

Soon we'll be down to `cat /dev/hda`

Submitted by Anonymous on Mon, 2005-04-11 21:04.

(Do not mix this up with apt-get update (see above)! apt-get update is used for updating the list of available packages after /etc/apt/sources.list has been changed.)

apt-get update is also used to update the list of packages for existing repositories in /etc/apt/sources.list. Running apt-get update before installing a program will ensure that you are downloading and installing the latest version of the software.

Submitted by Anonymous on Mon, 2005-04-11 20:04.

How reassuring...the classical example of ignorance in the "apt vs rpm" area, right in the first paragraph:

"Why do I want to use apt instead of rpm? The answer is easy: apt cares much better for package dependencies than rpm (apt resolves all dependencies by itself!) and saves me a lot of trouble and time."

You do not use apt or rpm. Apt, on rpm-based distributions, is a frontend for rpm, the same way it's a frontend for dpkg on Debian and other dpkg-based distributions. Never compare rpm with apt - compare rpm with dpkg.

Other rpm frontends include yum, urpmi, red-carpet, up2date and the yast package component.


/Peter

<