PDA

View Full Version : Adding extra repos to APT source file


gonzalo76
2004-04-30, 10:07 AM CDT
INTRODUCTION

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

You need to import all relevant GPG keys which sign each repository with the command:
rpm --import keyname or url key address as root.
Make sure you import all the GPG Keys before using APT.
They are included in this file in every APT repository.


DOWNLOAD APT

If you have apt installed already, then all you need to do is add some lines to your /etc/apt/sources.list.
If not, then install APT from: http://mirrors.kernel.org/fedora.us/fedora/fedora/1/i386/RPMS.stable/
Last version: apt-0.5.15cnc6-0.fdr.11.1.i386.rpm


USING APT

Update the package lists available in the repositories:
apt-get update
This will compare your RPM database against the updated lists. 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 key check by 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
Run "apt-get mirror-select" to reselect mirrors for that file.

If you've never used up2date, you will also need to do as root to get the standard Red Hat keys installed:
rpm --import /usr/share/doc/fedora-release-1/RPM-GPG-KEY*


Copy this file to your /etc/apt/sources.list as root.
Type 'gedit etc/apt/sources.list'


THIS FILE ONLY WORKS FOR FEDORA CORE 1

### [START]

#########################
## FEDORA CORE 1 RPMS ##
## BASE & EXTRA REPOS ##
#########################


# [FEDORA.US]
# GPG Key run: http://www.fedora.us/FEDORA-GPG-KEY
#rpm http://download.fedora.us/fedora/ fedora/1/i386 os updates stable
#rpm-src http://download.fedora.us/fedora/ fedora/1/i386 os updates stable


# [KERNEL.ORG]
rpm http://mirrors.kernel.org/fedora.us/fedora fedora/1/i386 os updates stable
rpm-src http://mirrors.kernel.org/fedora.us/fedora fedora/1/i386 os updates stable


#####################
# FEDORA CORE 1 RPMS
# ALTERNATE REPOS
#####################

# [LIVNA.ORG]
# GPG Key run: rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY
rpm http://rpm.livna.org/ fedora/1/i386 stable unstable testing
rpm-src http://rpm.livna.org/ fedora/1/i386 stable unstable testing


# [FRESH-RPMS]
# GPG Key run:rpm --import http://freshrpms.net/packages/RPM-GPG-KEY.txt
rpm http://ayo.freshrpms.net fedora/linux/1/i386 core freshrpms os updates
rpm-src http://ayo.freshrpms.net fedora/linux/1/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/fc1/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/fc1 newrpms
rpm-src http://newrpms.sunsite.dk/apt/ redhat/en/i386/fc1 newrpms


# [AT-RPMS]
# GPG Key run: rpm --import http://atrpms.net/RPM-GPG-KEY.atrpms
rpm http://apt.physik.fu-berlin.de fedora/1/en/i386 at-good
rpm http://apt.physik.fu-berlin.de fedora/1/en/i386 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/fc1/i386 dries
rpm-src http://dries.studentenweb.org apt/fedora/fc1/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/1 stable
rpm 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-1-i386 production testing depends
rpm http://people.ecsc.co.uk/~matt/downloads/apt fedora-2-i386 production testing
rpm-src http://people.ecsc.co.uk/~matt/downloads/apt fedora-1-i386 production testing


# [RPMPAN]
# GPG Key run: not found
rpm http://www.quantumlinux.com rpmpan rpmpan


# [Ling Li]
# GPG Key run:rpm --import http://apt.ling.li/RPM-GPG-KEY.txt
rpm http://apt.ling.li fedora/1/i586 li unstable


# [SUN-SITE]
# GPG Key run: not found
rpm http://sunsite.informatik.rwth-aachen.de ftp/pub/Linux/fedora/fedora/1/i386 os updates stable


# [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/1 i686 stable bleeding
rpm-src http://rpms.xcyb.org/fedora/1 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/1 macromedia

# [BIO-RPMS]
# GPG Key run: rpm --import http://apt.bea.ki.se/biorpms/RPM-GPG-KEY.biorpms
rpm http://apt.bea.ki.se/biorpms fedora/linux/1/i386 biorpms
rpm-src http://apt.bea.ki.se/biorpms fedora/linux/1/i386 biorpms


# [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-1 free


# [GSTREAMER]
# GPG Key run: rpm --import http://thomas.apestaart.org/pkg/thomas.pubkey
rpm http://gstreamer.freedesktop.org/pkg/ fedora/1/i386 deps gst
rpm-src http://gstreamer.freedesktop.org/pkg/ fedora/1/i386 deps gst

### [END]
### [2004-04-30]

THIS FILE ONLY WORKS FOR FEDORA CORE 1 !!!!
I'll do another one for Fedora Core 2 final stable version as soon as it'll be released.

FizzGiGG
2004-05-14, 11:25 AM CDT
Is there a way to use an ftp repository instead of through http?

My corporate proxy will not allow rpm's through http.