Differences between revisions 18 and 19
Revision 18 as of 2010-03-18 17:14:39
Size: 5535
Comment:
Revision 19 as of 2010-03-19 16:21:00
Size: 5544
Comment:
Deletions are marked like this. Additions are marked like this.
Line 65: Line 65:
The backports repository is deactivated by default. So, if you want to install a backported package, you will have to state that explicitly. Die Backports-Paketquellen sind standardmäßig deaktiviert. So, if you want to install a backported package, you will have to state that explicitly.
Line 67: Line 67:
For example: Zum Beispiel:
Line 70: Line 70:
The {{{-t}}} option here specifies {{{lenny-backports}}} as the target release. This would install Iceweasel 3.5 from Backports.org instead of version 3.0 from the Debian stable release. Die Option {{{-t}}} gibt {{{lenny-backports}}} hier als Target-Release an. Obige Anweisung würde Iceweasel 3.5 von Backports.org statt der Version 3.0 aus Debian stable installieren.

Translation(s): Deutsch - English - Français - Italiano

(!) ?Discussion


Sie nutzen Debian stable, weil Sie die stabile Version von Debian bevorzugen. Das System läuft wunderbar, es gibt nur ein Problem: Die Software ist im Vergleich zu anderen Distributionen ein wenig veraltet. An dieser Stelle kommen Backports ins Spiel.

Backports sind Pakete, die auf Programmversionen aus testing (hauptsächlich) und unstable (nur in einigen Fällen, bspw. Sicherheits-Updates) basieren und so kompiliert wurden, dass sie möglichst ohne neue Bibliotheken auf Debian stable verwendet werden können. Wir empfehlen Ihnen, sich einzelne Backports herauszusuchen, die Sie benötigen, statt alle verfügbaren Backports zu installieren.

Dieser Artikel beschreibt, wie Sie:

  • Ihrem System die Paketquellen von Backports.org hinzufügen
  • einen bestimmten Backport finden
  • Pakete aus den Backports.org-Paketquellen installieren
  • Ihre Backports automatisch aktualisieren lassen

Die offiziele Anleitung zur Benutzung von Debian Backports finden Sie unter Backports.org Instructions (englisch).


Das System konfigurieren

Backports verifizieren

Um die Integrität heruntergeladener Backports zu verifizieren, bevor diese installiert werden, benötigt APT den Archiv-Schlüssel von Backports.org. Das Paket debian-backports-keyring enthält diesen Schlüssel. Deshalb sollten Sie dieses Paket zuerst installieren.

Hinweis: Die Backports.org-Paketquellen müssen vor diesem Schritt hinzugefügt werden.

Paketquellen hinzufügen

Über Synaptic

  • Open Synaptic
  • Go to:

   Configuration > Repository
  • Add this repository:

    Screenshot-Repositories.png

Über die Kommandozeile

Become root and open the file /etc/apt/sources.list in your favorite editor:

human@debian:~$ su
Password:
debian:/home/human# nano /etc/apt/sources.list

Add the following lines:

# Backports.org repository
deb http://www.backports.org/debian/ lenny-backports main contrib non-free

If you are a free software enthusiast, you might want to remove the contrib and non-free sections. (See Debian sections for details.)

Now that you have added the repository, update APT's cache to include the backports in the list of available packages:

debian:/home/human# aptitude update

Done.

Backports nutzen

Backports finden

Es gibt mehrere Wege herauszufinden, ob ein Backport eines bestimmten Debian-Pakets existiert. Eine recht komfortable Möglichkeit dazu bietet Debians Online-Paketsuche (packages.debian.org). Wenn Sie Iceweasel benutzen, können Sie einfach das eingebaute Such-Plugin (Deb Search) verwenden.

Backports über die Kommandozeile installieren

Die Backports-Paketquellen sind standardmäßig deaktiviert. So, if you want to install a backported package, you will have to state that explicitly.

Zum Beispiel:

debian:/home/human# aptitude -t lenny-backports install iceweasel

Die Option -t gibt lenny-backports hier als Target-Release an. Obige Anweisung würde Iceweasel 3.5 von Backports.org statt der Version 3.0 aus Debian stable installieren.

Automatische Aktualisierungen

Because the Backports.org repository is deactivated by default, your installed backports will not recieve upgrades automatically. However, you can use pinning to cause APT to perform automatic upgrades. Pinning basically means controlling which version of which package is to be selected for installation. (See the APT HOWTO and man apt_preferences for in-depth explanation.)

In order to make APT perfom automatic upgrades of installed backports, follow these steps:

  1. Open the file /etc/apt/preferences in an editor of your choice.

  2. Insert the text below.
  3. Save and exit.

# APT PINNING PREFERENCES
Package: *
Pin: release a=lenny-backports
Pin-Priority: 200

After changing APT's behavior in that file, it will act like this:

If a package was installed from Backports.org and there is a newer version there, it will be upgraded from there. Other packages that are available from Backports.org will not be upgraded to the Backports.org version unless explicitly stated with -t lenny-backports.

Weblinks


  • ?CategoryDistributionRelease