gonzalo76
2004-05-20, 11:33 AM CDT
INTRO
APT-RPM is a port of Debian's apt tools to a RPM based distribution (Red Hat, Conectiva, SuSE etc). apt-get is an advanced package management utility front-end which allows you to easily perform package installation, upgrading and removal. Dependencies are automatically handled, so if you try to install a package that needs others to be installed, it will download all needed packages and install them.
APT (Advanced Package Tool) is a dependency tool, well known to Debian users since it is used by default with their dpkg packages. But apt has been ported to work with rpm packages too, by Conectiva, who has now used it for some time in their GNU/Linux distribution.
The good news is that apt for rpm may be used with any other rpm-based distribution. All you need is the tool compiled for your version of rpm and at least a repository where rpm packages and their apt metadata can be downloaded from.
You can later configure your client to download packages from a server closer to you, or from one offering add-on packages you're interested in. The apt client is quite simple to use, especially if you are already familiar with rpm. If you like having a graphical interface, there is a great gtk2 front-end called "synaptic" which you may also download from here. Once installed, just run "System Settings > Synaptic". If you've never seen it before, take a look at the synaptic screenshot at http://freshrpms.net/apt/synaptic/synaptic.png
GPG KEYS
Make sure you import all the GPG Keys before using APT. They are included in this file in every apt repository.
For example, if you want to import the LIVNA GPGKey do:
rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY
DOWNLOADING APT
From: http://download.fedora.us/fedora/fedora/2/i386/RPMS.stable/
USING APT
Update the local repository meta-data by doing:
# apt-get update
You can upgrade your system with the latest packages with:
# apt-get upgrade
You can add new software by typing:
apt-get install <name of package>
If you want to install the lastest version of grip:
# apt-get install grip
Or search for software in the local repository meta-data:
# apt-cache search <keyword>
# apt-cache show <name of package>
If you're looking for grip but you don't know if your repositories have it or not:
# apt-cache search grip
From time to time you may want to save some diskspace:
# apt-get clean
Remember to update your local repository often before upgrading or installing software, so that you can enjoy the latest and greatest.
For more info:
man apt-get
/etc/apt/apt.conf (APT configuration where you can, for example, disable the GPG check changing 'true' x 'false')
/etc/apt/sources.list (APT rpm list of local repositories where you can add or delete repositories)
Be sure to read /etc/apt/sources.list.d/mirror-select.list which has been automatically configured by the Fedora apt mirror selector
To reselect mirrors for that file run apt-get mirror-select
You will also need to get the standard Red Hat keys installed:
rpm --import /usr/share/doc/fedora-release-2/RPM-GPG-KEY*
Copy any repo you want to your /etc/apt/sources.list as root.
FEDORA CORE 2 RPM REPOSITORIES
# [FEDORA.US] University of Hawaii Honolulu, Hawaii, USA
rpm http://download.fedora.us/fedora/ fedora/2/i386 os updates stable
#rpm-src http://download.fedora.us/fedora/ fedora/2/i386 os updates stable
# [KERNEL.ORG]
rpm http://mirrors.kernel.org/fedora.us/fedora fedora/2/i386 os updates stable
#rpm-src http://mirrors.kernel.org/fedora.us/fedora fedora/2/i386 os updates stable
# [LIVNA.ORG]
# GPG Key run: rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY
rpm http://rpm.livna.org/ fedora/2/i386 stable
#rpm-src http://rpm.livna.org/ fedora/2/i386 stable
# [FRESH-RPMS]
# GPG Key run:rpm --import http://freshrpms.net/packages/RPM-GPG-KEY.txt
rpm http://ayo.freshrpms.net fedora/linux/2/i386 core freshrpms os updates
#rpm-src http://ayo.freshrpms.net fedora/linux/2/i386 core freshrpms os updates
# [DAG]
# GPG Key run: rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
rpm http://apt.sw.be redhat/fc2/en/i386 dag
# [NEW-RPMS]
# GPG Key run: rpm --import http://newrpms.sunsite.dk/gpg-pubkey-newrpms.txt
rpm http://newrpms.sunsite.dk/apt redhat/en/i386/fc2 newrpms
#rpm-src http://newrpms.sunsite.dk/apt redhat/en/i386/fc2 newrpms
# [AT-RPMS]
# GPG Key run: rpm --import http://atrpms.net/RPM-GPG-KEY.atrpms
rpm http://apt.physik.fu-berlin.de fedora/2/en/i386 at-good at-stable
# [DRIES]
# GPG Key run: rpm --import http://dries.studentenweb.org/ayo/RPM-GPG-KEY.dries.txt
rpm http://dries.studentenweb.org apt/fedora/fc2/i386 dries
#rpm-src http://dries.studentenweb.org apt/fedora/fc2/i386 dries
# [KDE for Fedora Linux]
# GPG Key download from:
# http://prdownloads.sourceforge.net/kde-redhat/gpg.rexdieter-kde-redhat.key?use_mirror=umn
rpm ftp://apt.kde-redhat.org/apt fedora/2 stable
rpm ftp://apt.kde-redhat.org/apt fedora/all stable
#rpm-src ftp://apt.kde-redhat.org/apt fedora/2 stable
#rpm-src ftp://apt.kde-redhat.org/apt fedora/all stable
# [Matthew Hall APT Repository] (gnome extras depends)
# GPG Key run: rpm --import http://people.ecsc.co.uk/~matt/gpg/mattatecscdotcodotuk.asc
rpm http://people.ecsc.co.uk/~matt/downloads/apt fedora-2-i386 production depends
#rpm-src http://people.ecsc.co.uk/~matt/downloads/apt fedora-2-i386 production depends
# [Ling Li]
# GPG Key run:rpm --import http://apt.ling.li/RPM-GPG-KEY.txt
rpm http://apt.ling.li fedora/2/i586 li testing unstable
# [SUN-SITE]
# GPG Key run: not found
rpm http://sunsite.informatik.rwth-aachen.de ftp/pub/Linux/fedora/fedora/2/i386 os stable updates
# [Arjan's van de Ven 2.5 series kernel repository]
# GPG Key run: rpm --import http://people.redhat.com/arjanv/2.5/pubkey.gpg
rpm http://people.redhat.com arjanv/2.5 kernel
#rpm-src http://people.redhat.com arjanv/2.5 kernel
# [K3B] (CD & DVD Burning)
# GPG Key run: not found
rpm http://rpms.xcyb.org/fedora/2 i686 stable bleeding
#rpm-src http://rpms.xcyb.org/fedora/2 i686 stable bleeding
# [MACROMEDIA]
# GPG Key run: rpm --import http://ruslug.rutgers.edu/macromedia/gpg-publickey.txt
rpm http://sluglug.ucsc.edu/macromedia apt/fedora/2 macromedia
# [JPACKAGE]
# GPG Key run: rpm --import http://www.jpackage.org/jpackage.asc
rpm http://aleron.dl.sourceforge.net/sourceforge/jpackage direct_download/1.5/fedora-2 free
# [GSTREAMER]
# GPG Key run: rpm --import http://thomas.apestaart.org/pkg/thomas.pubkey
rpm http://gstreamer.freedesktop.org/pkg fedora/2/i386 deps gst
#rpm-src http://gstreamer.freedesktop.org/pkg/ fedora/2/i386 deps gst
# [ROCKERSSOFT]
# GPG Key: not found
rpm http://www.rockerssoft.com/apt fedora/2/en/i386 rockerssoft
#rpm-src http://www.rockerssoft.com/apt fedora/2/en/i386 rockerssoft
ENJOY !
APT-RPM is a port of Debian's apt tools to a RPM based distribution (Red Hat, Conectiva, SuSE etc). apt-get is an advanced package management utility front-end which allows you to easily perform package installation, upgrading and removal. Dependencies are automatically handled, so if you try to install a package that needs others to be installed, it will download all needed packages and install them.
APT (Advanced Package Tool) is a dependency tool, well known to Debian users since it is used by default with their dpkg packages. But apt has been ported to work with rpm packages too, by Conectiva, who has now used it for some time in their GNU/Linux distribution.
The good news is that apt for rpm may be used with any other rpm-based distribution. All you need is the tool compiled for your version of rpm and at least a repository where rpm packages and their apt metadata can be downloaded from.
You can later configure your client to download packages from a server closer to you, or from one offering add-on packages you're interested in. The apt client is quite simple to use, especially if you are already familiar with rpm. If you like having a graphical interface, there is a great gtk2 front-end called "synaptic" which you may also download from here. Once installed, just run "System Settings > Synaptic". If you've never seen it before, take a look at the synaptic screenshot at http://freshrpms.net/apt/synaptic/synaptic.png
GPG KEYS
Make sure you import all the GPG Keys before using APT. They are included in this file in every apt repository.
For example, if you want to import the LIVNA GPGKey do:
rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY
DOWNLOADING APT
From: http://download.fedora.us/fedora/fedora/2/i386/RPMS.stable/
USING APT
Update the local repository meta-data by doing:
# apt-get update
You can upgrade your system with the latest packages with:
# apt-get upgrade
You can add new software by typing:
apt-get install <name of package>
If you want to install the lastest version of grip:
# apt-get install grip
Or search for software in the local repository meta-data:
# apt-cache search <keyword>
# apt-cache show <name of package>
If you're looking for grip but you don't know if your repositories have it or not:
# apt-cache search grip
From time to time you may want to save some diskspace:
# apt-get clean
Remember to update your local repository often before upgrading or installing software, so that you can enjoy the latest and greatest.
For more info:
man apt-get
/etc/apt/apt.conf (APT configuration where you can, for example, disable the GPG check changing 'true' x 'false')
/etc/apt/sources.list (APT rpm list of local repositories where you can add or delete repositories)
Be sure to read /etc/apt/sources.list.d/mirror-select.list which has been automatically configured by the Fedora apt mirror selector
To reselect mirrors for that file run apt-get mirror-select
You will also need to get the standard Red Hat keys installed:
rpm --import /usr/share/doc/fedora-release-2/RPM-GPG-KEY*
Copy any repo you want to your /etc/apt/sources.list as root.
FEDORA CORE 2 RPM REPOSITORIES
# [FEDORA.US] University of Hawaii Honolulu, Hawaii, USA
rpm http://download.fedora.us/fedora/ fedora/2/i386 os updates stable
#rpm-src http://download.fedora.us/fedora/ fedora/2/i386 os updates stable
# [KERNEL.ORG]
rpm http://mirrors.kernel.org/fedora.us/fedora fedora/2/i386 os updates stable
#rpm-src http://mirrors.kernel.org/fedora.us/fedora fedora/2/i386 os updates stable
# [LIVNA.ORG]
# GPG Key run: rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY
rpm http://rpm.livna.org/ fedora/2/i386 stable
#rpm-src http://rpm.livna.org/ fedora/2/i386 stable
# [FRESH-RPMS]
# GPG Key run:rpm --import http://freshrpms.net/packages/RPM-GPG-KEY.txt
rpm http://ayo.freshrpms.net fedora/linux/2/i386 core freshrpms os updates
#rpm-src http://ayo.freshrpms.net fedora/linux/2/i386 core freshrpms os updates
# [DAG]
# GPG Key run: rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
rpm http://apt.sw.be redhat/fc2/en/i386 dag
# [NEW-RPMS]
# GPG Key run: rpm --import http://newrpms.sunsite.dk/gpg-pubkey-newrpms.txt
rpm http://newrpms.sunsite.dk/apt redhat/en/i386/fc2 newrpms
#rpm-src http://newrpms.sunsite.dk/apt redhat/en/i386/fc2 newrpms
# [AT-RPMS]
# GPG Key run: rpm --import http://atrpms.net/RPM-GPG-KEY.atrpms
rpm http://apt.physik.fu-berlin.de fedora/2/en/i386 at-good at-stable
# [DRIES]
# GPG Key run: rpm --import http://dries.studentenweb.org/ayo/RPM-GPG-KEY.dries.txt
rpm http://dries.studentenweb.org apt/fedora/fc2/i386 dries
#rpm-src http://dries.studentenweb.org apt/fedora/fc2/i386 dries
# [KDE for Fedora Linux]
# GPG Key download from:
# http://prdownloads.sourceforge.net/kde-redhat/gpg.rexdieter-kde-redhat.key?use_mirror=umn
rpm ftp://apt.kde-redhat.org/apt fedora/2 stable
rpm ftp://apt.kde-redhat.org/apt fedora/all stable
#rpm-src ftp://apt.kde-redhat.org/apt fedora/2 stable
#rpm-src ftp://apt.kde-redhat.org/apt fedora/all stable
# [Matthew Hall APT Repository] (gnome extras depends)
# GPG Key run: rpm --import http://people.ecsc.co.uk/~matt/gpg/mattatecscdotcodotuk.asc
rpm http://people.ecsc.co.uk/~matt/downloads/apt fedora-2-i386 production depends
#rpm-src http://people.ecsc.co.uk/~matt/downloads/apt fedora-2-i386 production depends
# [Ling Li]
# GPG Key run:rpm --import http://apt.ling.li/RPM-GPG-KEY.txt
rpm http://apt.ling.li fedora/2/i586 li testing unstable
# [SUN-SITE]
# GPG Key run: not found
rpm http://sunsite.informatik.rwth-aachen.de ftp/pub/Linux/fedora/fedora/2/i386 os stable updates
# [Arjan's van de Ven 2.5 series kernel repository]
# GPG Key run: rpm --import http://people.redhat.com/arjanv/2.5/pubkey.gpg
rpm http://people.redhat.com arjanv/2.5 kernel
#rpm-src http://people.redhat.com arjanv/2.5 kernel
# [K3B] (CD & DVD Burning)
# GPG Key run: not found
rpm http://rpms.xcyb.org/fedora/2 i686 stable bleeding
#rpm-src http://rpms.xcyb.org/fedora/2 i686 stable bleeding
# [MACROMEDIA]
# GPG Key run: rpm --import http://ruslug.rutgers.edu/macromedia/gpg-publickey.txt
rpm http://sluglug.ucsc.edu/macromedia apt/fedora/2 macromedia
# [JPACKAGE]
# GPG Key run: rpm --import http://www.jpackage.org/jpackage.asc
rpm http://aleron.dl.sourceforge.net/sourceforge/jpackage direct_download/1.5/fedora-2 free
# [GSTREAMER]
# GPG Key run: rpm --import http://thomas.apestaart.org/pkg/thomas.pubkey
rpm http://gstreamer.freedesktop.org/pkg fedora/2/i386 deps gst
#rpm-src http://gstreamer.freedesktop.org/pkg/ fedora/2/i386 deps gst
# [ROCKERSSOFT]
# GPG Key: not found
rpm http://www.rockerssoft.com/apt fedora/2/en/i386 rockerssoft
#rpm-src http://www.rockerssoft.com/apt fedora/2/en/i386 rockerssoft
ENJOY !