Linux/Paketverwaltung: Unterschied zwischen den Versionen

Aus Foxwiki
Die Seite wurde neu angelegt: „== Linux Package Management Übersicht == === Managing Packages === {| style="border-spacing:0;margin:auto;width:17.59cm;" |- ! align=center style="border-t…“
 
Keine Bearbeitungszusammenfassung
 
(49 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
== Linux Package Management Übersicht ==
'''Linux-Paketverwaltung''' - apt - yum - zypper


=== Managing Packages ===
== Beschreibung ==
 
== Anwendung ==
 
{| class="wikitable options"
{| style="border-spacing:0;margin:auto;width:17.59cm;"
|-
! align=center style="border-top:0.75pt double #808080;border-bottom:0.05pt double #808080;border-left:0.75pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | Task
! align=center style="border-top:0.75pt double #808080;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | apt (deb)
! align=center style="border-top:0.75pt double #808080;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | yum (rpm)
! align=center style="border-top:0.75pt double #808080;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | zypper (rpm)
|-
|-
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.75pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | '''Install from repository'''
! !! apt (deb) !! yum (rpm) !! zypper (rpm)
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>apt-get install pkg-name</tt>
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>yum install pkg-name</tt>
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>zypper install pkg-name</tt>
|-
|-
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.75pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | '''Update package'''
| Aus Repositories installieren || apt-get install ''Paket'' ||yum install ''Paket'' ||zypper install ''Paket''
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>apt-get install pkg-name</tt>
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>yum update pkg-name</tt>
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>zypper update -t package pkg-name</tt>
|-
|-
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.75pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | '''Remove package'''
| Paket aktualisieren || apt-get install ''Paket'' ||yum update ''Paket'' ||zypper update -t package ''Paket''
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>apt-get remove pkg-name</tt>
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>yum erase pkg-name</tt>
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>zypper remove pkg-name</tt>
|-
|-
| style="border-top:none;border-bottom:0.75pt double #808080;border-left:0.75pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | '''Install from package file'''
| Paket entfernen || apt-get remove ''Paket'' || yum erase ''Paket'' || zypper remove ''Paket''
| style="border-top:none;border-bottom:0.75pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>dpkg -i pkg-name</tt>
| style="border-top:none;border-bottom:0.75pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>yum localinstall pkg-name</tt>
| style="border-top:none;border-bottom:0.75pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>zypper install pkg-name</tt>
|-
|-
| Installation einer Paketdatei || dpkg -i ''Paket'' ||yum localinstall ''Paket'' || zypper install ''Paket''
|}
|}
=== Searching Packages ===


{| style="border-spacing:0;margin:auto;width:17.59cm;"
=== Pakete suchen ===
{| class="wikitable options"
|-
|-
! align=center style="border-top:0.75pt double #808080;border-bottom:0.05pt double #808080;border-left:0.75pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | Task
! !! apt (deb) !! yum (rpm) !! zypper (rpm)
! align=center style="border-top:0.75pt double #808080;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | apt (deb)
! align=center style="border-top:0.75pt double #808080;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | yum (rpm)
! align=center style="border-top:0.75pt double #808080;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | zypper (rpm)
|-
|-
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.75pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | '''Search by package name'''
| Paket-Name || apt-cache search ''Paket'' || yum list ''Paket'' || zypper search ''Paket''
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>apt-cache search pkg-name</tt>
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>yum list pkg-name</tt>
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>zypper search pkg-name</tt>
|-
|-
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.75pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | '''Search by pattern'''
| Suchbegriffe || apt-cache ''search pattern'' || yum search ''pattern'' || zypper search -t ''pattern''
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>apt-cache search pattern</tt>
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>yum search pattern</tt>
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>zypper search -t pattern pattern</tt>
|-
|-
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.75pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | '''Search by file name'''
| Datei-Namen || apt-file ''search path'' || yum provides ''file'' || zypper wp ''file''
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>apt-file search path</tt>
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>yum provides file</tt>
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>zypper wp file</tt>
|-
|-
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.75pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | '''List installed packages'''
| Installierte Pakete auflisten || dpkg -l || rpm -qa || zypper search -is
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>dpkg -l</tt>
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>rpm -qa</tt>
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>zypper search -is</tt>
|-
| style="border-top:none;border-bottom:0.75pt double #808080;border-left:0.75pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | '''Show package information'''
| style="border-top:none;border-bottom:0.75pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>apt-cache show pgk-name</tt>
| style="border-top:none;border-bottom:0.75pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>yum info pkg-name</tt>
| style="border-top:none;border-bottom:0.75pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>zypper info pkg-name</tt>
|-
|-
| Paket-Informationen anzeigen || apt-cache show ''Paket'' || yum info ''Paket'' || zypper info ''Paket''
|}
|}
=== Updating System ===


{| style="border-spacing:0;margin:auto;width:17.59cm;"
=== System-Update ===
|-
{| class="wikitable options"
! align=center style="border-top:0.75pt double #808080;border-bottom:0.05pt double #808080;border-left:0.75pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | Task
! align=center style="border-top:0.75pt double #808080;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | apt (deb)
! align=center style="border-top:0.75pt double #808080;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | yum (rpm)
! align=center style="border-top:0.75pt double #808080;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | zypper (rpm)
|-
|-
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.75pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | '''Update package list'''
! !! apt (deb) !! yum (rpm) !! zypper (rpm)
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>apt-get update</tt>
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>yum check-update</tt>
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>zypper refresh</tt>
|-
|-
| style="border-top:none;border-bottom:0.75pt double #808080;border-left:0.75pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | '''Update system'''
| Paketliste aktualisieren || apt-get update || yum check-update || zypper refresh
| style="border-top:none;border-bottom:0.75pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>apt-get upgrade</tt>
| style="border-top:none;border-bottom:0.75pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>yum update</tt>
| style="border-top:none;border-bottom:0.75pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>zypper update</tt>
|-
|-
| System-Update || apt-get upgrade ||yum update || zypper update
|}
|}
=== Software Repositories ===


 
=== Repositories verwalten ===
{| style="border-spacing:0;margin:auto;width:17.59cm;"
{| class="wikitable options"
|-
! align=center style="border-top:0.75pt double #808080;border-bottom:0.05pt double #808080;border-left:0.75pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | Task
! align=center style="border-top:0.75pt double #808080;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | apt (deb)
! align=center style="border-top:0.75pt double #808080;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | yum (rpm)
! align=center style="border-top:0.75pt double #808080;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | zypper (rpm)
|-
|-
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.75pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | '''List repositories'''
! !! apt (deb) !! yum (rpm) !! zypper (rpm)
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>cat /etc/apt/sources.list</tt>
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>yum repolist</tt>
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>zypper repos</tt>
|-
|-
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.75pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | '''Add repository'''
| List repositories || cat /etc/apt/sources.list || yum repolist || zypper repos
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | ''edit'' <tt>/etc/apt/sources.list</tt>
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | ''add to'' <tt>/etc/yum.repos.d/</tt>
| style="border-top:none;border-bottom:0.05pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>zypper addrepo URI name</tt>
|-
|-
| style="border-top:none;border-bottom:0.75pt double #808080;border-left:0.75pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | '''Remove repository'''
| Add repository || edit /etc/apt/sources.list || add to /etc/yum.repos.d/ || zypper addrepo URI name
| style="border-top:none;border-bottom:0.75pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | ''edit'' <tt>/etc/apt/sources.list</tt>
| style="border-top:none;border-bottom:0.75pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | ''remove from'' <tt>/etc/yum.repos.d/</tt>
| style="border-top:none;border-bottom:0.75pt double #808080;border-left:0.05pt double #808080;border-right:0.75pt double #808080;padding:0.049cm;" | <tt>zypper removerepo name</tt>
|-
|-
| Remove repository || edit /etc/apt/sources.list || remove from /etc/yum.repos.d/ || zypper removerepo name
|}
|}
<noinclude>
== Anhang ==
=== Siehe auch ===
{{Special:PrefixIndex/{{BASEPAGENAME}}}}
==== Links ====
===== Weblinks =====
[[Kategorie:Linux/Software/Verwaltung]]
</noinclude>

Aktuelle Version vom 6. September 2024, 08:06 Uhr

Linux-Paketverwaltung - apt - yum - zypper

Beschreibung

Anwendung

apt (deb) yum (rpm) zypper (rpm)
Aus Repositories installieren apt-get install Paket yum install Paket zypper install Paket
Paket aktualisieren apt-get install Paket yum update Paket zypper update -t package Paket
Paket entfernen apt-get remove Paket yum erase Paket zypper remove Paket
Installation einer Paketdatei dpkg -i Paket yum localinstall Paket zypper install Paket

Pakete suchen

apt (deb) yum (rpm) zypper (rpm)
Paket-Name apt-cache search Paket yum list Paket zypper search Paket
Suchbegriffe apt-cache search pattern yum search pattern zypper search -t pattern
Datei-Namen apt-file search path yum provides file zypper wp file
Installierte Pakete auflisten dpkg -l rpm -qa zypper search -is
Paket-Informationen anzeigen apt-cache show Paket yum info Paket zypper info Paket

System-Update

apt (deb) yum (rpm) zypper (rpm)
Paketliste aktualisieren apt-get update yum check-update zypper refresh
System-Update apt-get upgrade yum update zypper update

Repositories verwalten

apt (deb) yum (rpm) zypper (rpm)
List repositories cat /etc/apt/sources.list yum repolist zypper repos
Add repository edit /etc/apt/sources.list add to /etc/yum.repos.d/ zypper addrepo URI name
Remove repository edit /etc/apt/sources.list remove from /etc/yum.repos.d/ zypper removerepo name


Anhang

Siehe auch

Links

Weblinks