Linux/Paketverwaltung: Unterschied zwischen den Versionen

Aus Foxwiki
Keine Bearbeitungszusammenfassung
 
(14 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
'''Linux-Paketverwaltung''' - Kurzbeschreibung
'''Linux-Paketverwaltung''' - apt - yum - zypper


== Beschreibung ==
== Beschreibung ==
== Anwendung ==
== Anwendung ==
{| class="wikitable"  
{| class="wikitable options"
|-
|-
! |
! !! apt (deb) !! yum (rpm) !! zypper (rpm)
! |apt (deb)
! |yum (rpm)
! |zypper (rpm)
|-
|-
| |'''Aus Repositories installieren'''
| Aus Repositories installieren || apt-get install ''Paket'' ||yum install ''Paket'' ||zypper install ''Paket''
| |apt-get install pkg-name
| |yum install pkg-name
| |zypper install pkg-name
|-
|-
| |'''Paket aktualisieren'''
| Paket aktualisieren || apt-get install ''Paket'' ||yum update ''Paket'' ||zypper update -t package ''Paket''
| |apt-get install pkg-name
| |yum update pkg-name
| |zypper update -t package pkg-name
|-
|-
| |'''Paket entfernen'''
| Paket entfernen || apt-get remove ''Paket'' || yum erase ''Paket'' || zypper remove ''Paket''
| |apt-get remove pkg-name
| |yum erase pkg-name
| |zypper remove pkg-name
|-
|  |'''Installation einer Paketdatei'''
|  |dpkg -i pkg-name
|  |yum localinstall pkg-name
|  |zypper install pkg-name
|-
|-
| Installation einer Paketdatei || dpkg -i ''Paket'' ||yum localinstall ''Paket'' || zypper install ''Paket''
|}
|}


=== Pakete suchen ===
=== Pakete suchen ===
{| class="wikitable"  
{| class="wikitable options"
|-
!  |
!  |apt (deb)
!  |yum (rpm)
!  |zypper (rpm)
|-
|-
|  |'''Search by package name'''
! !! apt (deb) !! yum (rpm) !! zypper (rpm)
|  |apt-cache search pkg-name
|  |yum list pkg-name
|  |zypper search pkg-name
|-
|-
| |'''Search by pattern'''
| Paket-Name || apt-cache search ''Paket'' || yum list ''Paket'' || zypper search ''Paket''
|apt-cache search pattern
| |yum search pattern
| |zypper search -t pattern pattern
|-
|-
| |'''Search by file name'''
| Suchbegriffe || apt-cache ''search pattern'' || yum search ''pattern'' || zypper search -t ''pattern''
| |apt-file search path
|  |yum provides file
| |zypper wp file
|-
|-
| |'''List installed packages'''
| Datei-Namen || apt-file ''search path'' || yum provides ''file'' || zypper wp ''file''
|  |dpkg -l
| |rpm -qa
|zypper search -is
|-
|-
| |'''Show package information'''
| Installierte Pakete auflisten || dpkg -l || rpm -qa || zypper search -is
| |apt-cache show pgk-name
| |yum info pkg-name
| |zypper info pkg-name
|-
|-
| Paket-Informationen anzeigen || apt-cache show ''Paket'' || yum info ''Paket'' || zypper info ''Paket''
|}
|}


=== Updating System ===
=== System-Update ===
{| class="wikitable"  
{| class="wikitable options"
|-
!  |Task
!  |apt (deb)
!  |yum (rpm)
!  |zypper (rpm)
|-
|-
|  |'''Update package list'''
! !! apt (deb) !! yum (rpm) !! zypper (rpm)
|  |apt-get update
|  |yum check-update
|  |zypper refresh
|-
|-
| |'''Update system'''
| Paketliste aktualisieren || apt-get update || yum check-update || zypper refresh
|apt-get upgrade
| |yum update
| |zypper update
|-
|-
| System-Update || apt-get upgrade ||yum update || zypper update
|}
|}


===Software Repositories===
=== Repositories verwalten ===
{| class="wikitable"  
{| class="wikitable options"
|-
!  |Task
!  |apt (deb)
!  |yum (rpm)
!  |zypper (rpm)
|-
|-
|  |'''List repositories'''
! !! apt (deb) !! yum (rpm) !! zypper (rpm)
|  |cat /etc/apt/sources.list
|  |yum repolist
|  |zypper repos
|-
|-
| |'''Add repository'''
| List repositories || cat /etc/apt/sources.list || yum repolist || zypper repos
| |''edit''/etc/apt/sources.list
| |''add to''/etc/yum.repos.d/
| |zypper addrepo URI name
|-
|-
| |'''Remove repository'''
| Add repository || edit /etc/apt/sources.list || add to /etc/yum.repos.d/ || zypper addrepo URI name
| |''edit''/etc/apt/sources.list
| |''remove from''/etc/yum.repos.d/
| |zypper removerepo name
|-
|-
| Remove repository || edit /etc/apt/sources.list || remove from /etc/yum.repos.d/ || zypper removerepo name
|}
|}



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