Linux/Paketverwaltung: Unterschied zwischen den Versionen

Aus Foxwiki
Zeile 7: Zeile 7:
! !! 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 ''Paket''
| |yum install ''Paket''
| |zypper install ''Paket''
|-
|-
| |'''Paket aktualisieren'''
| Paket aktualisieren || apt-get install ''Paket'' ||yum update ''Paket'' ||zypper update -t package ''Paket''
| |apt-get install ''Paket''
| |yum update ''Paket''
| |zypper update -t package ''Paket''
|-
|-
| |'''Paket entfernen'''
| Paket entfernen || apt-get remove ''Paket'' || yum erase ''Paket'' || zypper remove ''Paket''
| |apt-get remove ''Paket''
| |yum erase ''Paket''
| |zypper remove ''Paket''
|-
|  |'''Installation einer Paketdatei'''
|  |dpkg -i ''Paket''
|  |yum localinstall ''Paket''
|  |zypper install ''Paket''
|-
|-
| Installation einer Paketdatei || dpkg -i ''Paket'' ||yum localinstall ''Paket'' || zypper install ''Paket''
|}
|}


Zeile 32: Zeile 19:
{| class="wikitable options"
{| class="wikitable options"
|-
|-
! Task !! apt (deb) !! yum (rpm) !! zypper (rpm)
! !! apt (deb) !! yum (rpm) !! zypper (rpm)
|-
|-
| |'''Search by package name'''
| Search by package name || apt-cache search ''Paket'' || yum list ''Paket'' || zypper search ''Paket''
| |apt-cache search ''Paket''
| |yum list ''Paket''
| |zypper search ''Paket''
|-
|-
| |'''Search by pattern'''
| Search by pattern || apt-cache search pattern || yum search pattern || zypper search -t pattern
| |apt-cache search pattern
| |yum search pattern
| |zypper search -t pattern
|-
|-
| |'''Search by file name'''
| Search by file name || apt-file search path || yum provides file || zypper wp file
| |apt-file search path
| |yum provides file
| |zypper wp file
|-
|-
| |'''List installed packages'''
| List installed packages || dpkg -l || rpm -qa || zypper search -is
| |dpkg -l
| |rpm -qa
| |zypper search -is
|-
|  |'''Show package information'''
|  |apt-cache show pgk-name
|  |yum info ''Paket''
|  |zypper info ''Paket''
|-
|-
| Show package information || apt-cache show pgk-name ||yum info ''Paket'' || zypper info ''Paket''
|}
|}


Zeile 64: Zeile 35:
{| class="wikitable options"
{| class="wikitable options"
|-
|-
! Task !! apt (deb) !! yum (rpm) !! zypper (rpm)
! !! apt (deb) !! yum (rpm) !! zypper (rpm)
|-
|  |'''Update package list'''
|  |apt-get update
|  |yum check-update
|  |zypper refresh
|-
|-
| |'''Update system'''
| Update package list || apt-get update || yum check-update || zypper refresh
| |apt-get upgrade
| |yum update
| |zypper update
|-
|-
| Update system || apt-get upgrade ||yum update || zypper update
|}
|}



Version vom 5. September 2024, 10:14 Uhr

Linux-Paketverwaltung - Übersicht

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)
Search by package name apt-cache search Paket yum list Paket zypper search Paket
Search by pattern apt-cache search pattern yum search pattern zypper search -t pattern
Search by file name apt-file search path yum provides file zypper wp file
List installed packages dpkg -l rpm -qa zypper search -is
Show package information apt-cache show pgk-name yum info Paket zypper info Paket

Updating System

apt (deb) yum (rpm) zypper (rpm)
Update package list apt-get update yum check-update zypper refresh
Update system apt-get upgrade yum update zypper update

Software Repositories

Task 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