Benutzer-Werkzeuge

Webseiten-Werkzeuge


linux_paketmanager

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
linux_paketmanager [2024-02-17 19:08:39] davidlinux_paketmanager [2025-09-17 18:59:32] (aktuell) – [Debian/Ubuntu] david
Zeile 28: Zeile 28:
  
  
-===== Debian/Ubuntu =====+===== APT (Debian/Ubuntu=====
  
 +**siehe: [[apt]]**
  
-==== Deprecated: apt-key ==== +  Debian: [[https://wiki.debian.org/DebianReleases]] 
- +  * Ubuntu: [[https://ubuntu.com/about/release-cycle]]
-  ''add-apt-repository'' ist lediglich ein wrapper um ''apt-key'', also keine sichere Alternative! +
-  * Allen Keys in ''/etc/apt/trusted.gpg.d/'' wird bedingungslos vertraut (cross signing), deshalb ist es nicht sicherer als ''/etc/apt/trusted.gpg'', was von ''apt-key'' verwendet wird +
-  * Keys sollten deshalb an einem "nicht besonderen" Ort abgelegt werden, der laut ''man sources.list'' empfohlene Ort befindet sich für... +
-    * **selbst verwaltete Keys** unter: ''/etc/apt/keyrings/'' +
-    * von Paketen verwaltete Keys unter: ''/usr/share/keyrings/'' +
-  * weitere Infos: [[https://askubuntu.com/a/1307181]] +
- +
-  ### bis Debian 11 / Ubuntu 22.04 +
-  curl -Ls https://packages.element.io/debian/element-io-archive-keyring.asc | apt-key add - +
-   +
-  ### ab Debian 12 / Ubuntu 22.10 +
-  curl -Lso /etc/apt/keyrings/element-desktop.asc https://packages.element.io/debian/element-io-archive-keyring.asc +
- +
- +
-==== APT Einstellungen ==== +
- +
-Im folgenden werden **backports** die gleiche Priorität wie den jeweiligen dazugehörigen Repositories zugewiesen, um relativ sicher neuere Paketversionen zur Verfügung zu haben. +
-Allerdings ist dies nicht immer erwünscht, da **backports** nicht im gleichen Maße getestet werden wie die regulären Repositories. +
- +
- +
-=== stable === +
- +
-Automatisch aus **stable** installieren (Priorität ''500''+
- +
-<code bash /etc/apt/preferences.d/stable> +
-Package: * +
-Pin: release n=bookworm +
-Pin-Priority: 500 +
- +
-Package: * +
-Pin: release n=bookworm-security +
-Pin-Priority: 500 +
- +
-Package: * +
-Pin: release n=bookworm-updates +
-Pin-Priority: 500 +
- +
-Package: * +
-Pin: release n=bookworm-backports +
-Pin-Priority: 500 +
-</code> +
- +
- +
-=== testing === +
- +
-Niemals automatisch aus **testing** installieren (Priorität ''-1''+
- +
-<code bash /etc/apt/preferences.d/testing> +
-Package: * +
-Pin: release n=trixie +
-Pin-Priority: -1 +
- +
-Package: * +
-Pin: release n=trixie-security +
-Pin-Priority: -1 +
- +
-Package: * +
-Pin: release n=trixie-updates +
-Pin-Priority: -1 +
- +
-Package: * +
-Pin: release n=trixie-backports +
-Pin-Priority: -1 +
-</code> +
- +
- +
-=== unstable === +
- +
-Niemals automatisch aus **unstable** installieren (Priorität ''-1''+
- +
-<code bash /etc/apt/preferences.d/unstable> +
-Package: * +
-Pin: release n=sid +
-Pin-Priority: -1 +
-</code> +
- +
- +
-==== APT Quellen ==== +
- +
-<code bash> +
-# Debian Archiv Keyring installieren +
-apt install debian-archive-keyring +
-# Alternativ: Debian Archiv Keyring neuinstallieren und dabei originale Keys wiederherstellen (z.B. falls ausversehen gelöscht/verändert) +
-apt reinstall -o Dpkg::Options::="--force-confmiss,confnew" debian-archive-keyring +
-</code> +
- +
-**Seit Debian 12 gibt es die neue Komponente __non-free-firmware__. Sie wurde von __non-free__ abgespalten und enthält nicht freie Firmware-Pakete.** +
- +
-Komplette Datei **sources.list** leeren oder alle Zeilen auskommentieren +
- +
-<code bash /etc/apt/sources.list> +
-</code> +
- +
- +
-=== stable === +
- +
-<code bash /etc/apt/sources.list.d/stable.list> +
-deb [signed-by=/etc/apt/trusted.gpg.d/debian-archive-bookworm-automatic.asc] http://deb.debian.org/debian bookworm main contrib non-free-firmware non-free +
-#deb-src [signed-by=/etc/apt/trusted.gpg.d/debian-archive-bookworm-automatic.aschttp://deb.debian.org/debian bookworm main contrib non-free-firmware non-free +
- +
-deb [signed-by=/etc/apt/trusted.gpg.d/debian-archive-bookworm-security-automatic.aschttp://deb.debian.org/debian-security bookworm-security main contrib non-free-firmware non-free +
-#deb-src [signed-by=/etc/apt/trusted.gpg.d/debian-archive-bookworm-security-automatic.asc] http://deb.debian.org/debian-security bookworm-security main contrib non-free-firmware non-free +
- +
-deb [signed-by=/etc/apt/trusted.gpg.d/debian-archive-bookworm-automatic.asc] http://deb.debian.org/debian bookworm-updates main contrib non-free-firmware non-free +
-#deb-src [signed-by=/etc/apt/trusted.gpg.d/debian-archive-bookworm-automatic.asc] http://deb.debian.org/debian bookworm-updates main contrib non-free-firmware non-free +
- +
-deb [signed-by=/etc/apt/trusted.gpg.d/debian-archive-bookworm-automatic.aschttp://deb.debian.org/debian bookworm-backports main contrib non-free-firmware non-free +
-#deb-src [signed-by=/etc/apt/trusted.gpg.d/debian-archive-bookworm-automatic.aschttp://deb.debian.org/debian bookworm-backports main contrib non-free-firmware non-free +
-</code> +
- +
- +
-=== testing === +
- +
-<code bash /etc/apt/sources.list.d/testing.list> +
-deb [signed-by=/etc/apt/trusted.gpg.d/debian-archive-bookworm-automatic.asc] http://deb.debian.org/debian trixie main contrib non-free-firmware non-free +
-#deb-src [signed-by=/etc/apt/trusted.gpg.d/debian-archive-bookworm-automatic.asc] http://deb.debian.org/debian trixie main contrib non-free-firmware non-free +
- +
-deb [signed-by=/etc/apt/trusted.gpg.d/debian-archive-bookworm-security-automatic.asc] http://deb.debian.org/debian-security trixie-security main contrib non-free-firmware non-free +
-#deb-src [signed-by=/etc/apt/trusted.gpg.d/debian-archive-bookworm-security-automatic.asc] http://deb.debian.org/debian-security trixie-security main contrib non-free-firmware non-free +
- +
-deb [signed-by=/etc/apt/trusted.gpg.d/debian-archive-bookworm-automatic.asc] http://deb.debian.org/debian trixie-updates main contrib non-free-firmware non-free +
-#deb-src [signed-by=/etc/apt/trusted.gpg.d/debian-archive-bookworm-automatic.asc] http://deb.debian.org/debian trixie-updates main contrib non-free-firmware non-free +
- +
-deb [signed-by=/etc/apt/trusted.gpg.d/debian-archive-bookworm-automatic.asc] http://deb.debian.org/debian trixie-backports main contrib non-free-firmware non-free +
-#deb-src [signed-by=/etc/apt/trusted.gpg.d/debian-archive-bookworm-automatic.asc] http://deb.debian.org/debian trixie-backports main contrib non-free-firmware non-free +
-</code> +
- +
- +
-=== unstable === +
- +
-<code bash /etc/apt/sources.list.d/unstable.list> +
-deb [signed-by=/etc/apt/trusted.gpg.d/debian-archive-bookworm-automatic.asc] http://deb.debian.org/debian sid main contrib non-free-firmware non-free +
-#deb-src [signed-by=/etc/apt/trusted.gpg.d/debian-archive-bookworm-automatic.asc] http://deb.debian.org/debian sid main contrib non-free-firmware non-free +
-</code>+
  
  
-==== APT ====+==== nützliches ====
  
 so kann man sehen, ob APT gerade läuft: so kann man sehen, ob APT gerade läuft:
Zeile 193: Zeile 60:
   # apt-get autoremove   # apt-get autoremove
  
-<file bash /root/bin/upgrade.sh>+<code bash>
 #!/bin/bash #!/bin/bash
  
Zeile 206: Zeile 73:
 sync sync
 cat /var/run/reboot-required cat /var/run/reboot-required
-</file>+</code> 
 + 
 + 
 +==== Deprecated: apt-key ==== 
 + 
 +  * ''add-apt-repository'' ist lediglich ein wrapper um ''apt-key'', also keine sichere Alternative! 
 +  * Allen Keys in ''/etc/apt/trusted.gpg.d/'' wird bedingungslos vertraut (cross signing), deshalb ist es nicht sicherer als ''/etc/apt/trusted.gpg'', was von ''apt-key'' verwendet wird 
 +  * Keys sollten deshalb an einem "nicht besonderen" Ort abgelegt werden, der laut ''man sources.list'' empfohlene Ort befindet sich für... 
 +    * **selbst verwaltete Keys** unter: ''/etc/apt/keyrings/'' 
 +    * von Paketen verwaltete Keys unter: ''/usr/share/keyrings/'' 
 +  * weitere Infos: [[https://askubuntu.com/a/1307181]] 
 + 
 +  ### bis Debian 11 / Ubuntu 22.04 
 +  curl -Ls https://packages.element.io/debian/element-io-archive-keyring.asc | apt-key add - 
 +   
 +  ### ab Debian 12 / Ubuntu 22.10 
 +  curl -Lso /etc/apt/keyrings/element-desktop.asc https://packages.element.io/debian/element-io-archive-keyring.asc
  
  
/home/http/wiki/data/attic/linux_paketmanager.1708196919.txt · Zuletzt geändert: von david