Apt for Fedora

Using Apt in Fedora Core 1 (i.e. apt-get) and configure it to use a norwegian server:

Install apt:

$ wget ftp://ftp.uninett.no/linux/Freshrpms/ayo/\
fedora/linux/1/i386/RPMS.freshrpms/apt-0.5.15cnc3-0.1.fr.i386.rpm
$ rpm -Uvh apt-0.5.15cnc3-0.1.fr.i386.rpm

Use uninett as mirror:

$ mv /etc/apt/sources.list /etc/apt/sources.list.orig
$ wget -q -O- ftp://ftp.uninett.no/linux/apt/\
sources.list-fedora-1 > /etc/apt/sources.list
$ wget -q -O- ftp://ftp.uninett.no/linux/apt/\
sources.list-fedora-1-freshrpms >> /etc/apt/sources.list

Get the list over available packages:

$ apt-get update

Update the system:

$ apt-get dist-upgrade

Install a package:

$ apt-get install packagename

Example:

$ apt-get install emacs

(thank you Terje R.)

4 Responses to “Apt for Fedora”

  1. Lars Andreas Larssen Says:

    Informasjonen er nok litt avlegs. Uninetts sources.list ligger som /linux/apt/sources.list-fedora-2 og sources.list-fedora-2-freshrpms. For de som ennå ikke bruker fedora, men tviholder på RH, sjekk /linux/RedHat/fedora-legacy/apt på samme server.

  2. Martin Says:

    And the idea was to keep this category in English…
    But thank you! :P

  3. Lars Andreas Larssen Says:

    Nordlendinger snakker ekstremt dårlig engelsk… But I see your point. Sorry about that!

  4. Martin Says:

    So what you want to do in Fedora Core 2, is:

    mv /etc/apt/sources.list /etc/apt/sources.list.orig
    wget -q -O- ftp://ftp.uninett.no/linux/apt/sources.list-fedora-2 >> /etc/apt/sources.list
    wget -q -O- ftp://ftp.uninett.no/linux/apt/sources.list-fedora-2-freshrpms >> /etc/apt/sources.list

Leave a Reply