« Debian APT » : différence entre les versions

De Le Wiki de Lug
Aller à la navigation Aller à la recherche
Ligne 11 : Ligne 11 :
  # vi /etc/apt/sources.list.d/stable.list
  # vi /etc/apt/sources.list.d/stable.list


  deb    http://ftp.fr.debian.org/debian/    stable main contrib non-free
  deb    <nowiki>http://</nowiki>ftp.<font color = green>fr</font>.debian.org/debian/    stable main contrib non-free
  deb-src http://ftp.fr.debian.org/debian/    stable main contrib non-free
  deb-src <nowiki>http://</nowiki>ftp.<font color = green>fr</font>.debian.org/debian/    stable main contrib non-free
   
   
  deb    http://security.debian.org/        stable/updates  main contrib non-free
  deb    <nowiki>http://</nowiki>security.debian.org/        stable/updates  main contrib non-free
----
----
  # vi /etc/apt/sources.list.d/testing.list
  # vi /etc/apt/sources.list.d/testing.list


  deb    http://ftp.fr.debian.org/debian/    testing main contrib non-free
  deb    <nowiki>http://</nowiki>ftp.<font color = green>fr</font>.debian.org/debian/    testing main contrib non-free
  deb-src http://ftp.fr.debian.org/debian/    testing main contrib non-free
  deb-src <nowiki>http://</nowiki>ftp.<font color = green>fr</font>.debian.org/debian/    testing main contrib non-free
 
{{Méta bandeau
  | niveau = information
  | icône = loupe
  | texte  = <font color = green>fr</font> pour se connecter aux serveurs situés en France.
}}


= Consulter version disponible d'un paquet =
= Consulter version disponible d'un paquet =

Version du 15 mai 2021 à 14:12

Gestion des priorités

Source

On ajoute le fichier suivant pour être sure de conserver les dépôts "Stable" par défaut :

# vi /etc/apt/apt.conf.d/99defaultrelease
APT::Default-Release "stable";

Ajout des sources

Debian Buster

# vi /etc/apt/sources.list.d/stable.list
deb     http://ftp.fr.debian.org/debian/    stable main contrib non-free
deb-src http://ftp.fr.debian.org/debian/    stable main contrib non-free

deb     http://security.debian.org/         stable/updates  main contrib non-free

# vi /etc/apt/sources.list.d/testing.list
deb     http://ftp.fr.debian.org/debian/    testing main contrib non-free
deb-src http://ftp.fr.debian.org/debian/    testing main contrib non-free

Consulter version disponible d'un paquet

# apt update
# apt-cache policy paquet

Installer la version "testing" d'un paquet

# apt install paquet/testing