« UpgradeAlpine » : différence entre les versions

De Le Wiki de Lug
Aller à la navigation Aller à la recherche
(Created page with "{{Méta bandeau | niveau = information | icône = loupe | texte = Exemple en passant de Alpine 3.12 à Alpine 3.13 }} Il faut tout d'abord éditer le fichier des dépo...")
 
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
== Procédure de mise à niveau =
{{Méta bandeau
{{Méta bandeau
   | niveau = information
   | niveau = information
Ligne 10 : Ligne 11 :
  <nowiki>http://</nowiki>dl-cdn.alpinelinux.org/alpine/<font color = green>v3.13</font>/main
  <nowiki>http://</nowiki>dl-cdn.alpinelinux.org/alpine/<font color = green>v3.13</font>/main
  <nowiki>http://</nowiki>dl-cdn.alpinelinux.org/alpine/<font color = green>v3.13</font>/community
  <nowiki>http://</nowiki>dl-cdn.alpinelinux.org/alpine/<font color = green>v3.13</font>/community
* On modifie le fichier pour aller chercher la dernière version stable :
* Sinon on modifie le fichier pour aller chercher la dernière version stable :
  <nowiki>http://</nowiki>dl-cdn.alpinelinux.org/alpine/<font color = green>latest-stable</font>/main
  <nowiki>http://</nowiki>dl-cdn.alpinelinux.org/alpine/<font color = green>latest-stable</font>/main
  <nowiki>http://</nowiki>dl-cdn.alpinelinux.org/alpine/<font color = green>latest-stable</font>/community
  <nowiki>http://</nowiki>dl-cdn.alpinelinux.org/alpine/<font color = green>latest-stable</font>/community
Finalement on actualise le système :
# apk update
# apk add --upgrade apk-tools
# apk upgrade --available
# sync
Si mise à jour du kernel il faudra rebooter :
# reboot
= Connaitre la version de Alpine Linux =
# cat /etc/alpine-release

Version du 22 avril 2021 à 15:47

= Procédure de mise à niveau

Il faut tout d'abord éditer le fichier des dépots :

# vi /etc/apk/repositories

Ensuite deux possibliltés :

  • On modifie le fichier en indiquant la version souahaité, ici 3.13
http://dl-cdn.alpinelinux.org/alpine/v3.13/main
http://dl-cdn.alpinelinux.org/alpine/v3.13/community
  • Sinon on modifie le fichier pour aller chercher la dernière version stable :
http://dl-cdn.alpinelinux.org/alpine/latest-stable/main
http://dl-cdn.alpinelinux.org/alpine/latest-stable/community

Finalement on actualise le système :

# apk update
# apk add --upgrade apk-tools
# apk upgrade --available
# sync

Si mise à jour du kernel il faudra rebooter :

# reboot

Connaitre la version de Alpine Linux

# cat /etc/alpine-release