User Tools

Site Tools


debian:backports:example_use_of_backport

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
debian:backports:example_use_of_backport [2023/07/17 12:41] – created peterdebian:backports:example_use_of_backport [2023/07/17 12:54] (current) peter
Line 1: Line 1:
 ====== Debian - Backports - Example use of Backport ====== ====== Debian - Backports - Example use of Backport ======
 +
 +Using backports is simple.
 +
 +----
 +
 +===== Configure Backport =====
 +
 +Add this line to the /etc/apt/sources.list.
 +
 +<file bash /etc/apt/sources.list>
 +deb http://www.backports.org/debian etch-backports main contrib non-free
 +</file>
 +
 +----
 +
 +===== Update =====
 +
 +<code bash>
 +apt-get update
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  An error message might be seen:
 +
 +<code>
 +Reading package lists... Done
 +W: GPG error: http://www.backports.org etch-backports Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EA8E8B2116BA136C
 +W: You may want to run apt-get update to correct these problems
 +</code>
 +
 +  * This message comes on Debian Etch because you have not imported the backports keyring.
 +
 +</WRAP>
 +
 +----
 +
 +===== Import the backports keyring =====
 +
 +<code bash>
 +sudo apt-get install debian-backports-keyring
 +</code>
 +
 +----
 +
 +===== Example install of a backport package =====
 +
 +To install a newer version of nmap:
 +
 +<code bash>
 +sudo apt-get -t etch-backports install nmap
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  
 +
 +  * **-t etch-backports**:  Since all backports are deactivated by default, the package manager needs to be told to use the backports repository.
 +
 +</WRAP>
 +
 +
 +<WRAP important>
 +**WARNING:**  It you forget to tell apt-get that nmap is installed from backports, and run another apt-get install nmap, it will remove the backports package and install the standard one.
 +
 +  * A simple solution to this is to use [[Debian:Backports:Pinning Backports|Pinning Backports]].
 +
 +</WRAP>
  
debian/backports/example_use_of_backport.1689597672.txt.gz · Last modified: 2023/07/17 12:41 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki