Linux/Paketverwaltung: Unterschied zwischen den Versionen

Aus Foxwiki
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
{|class="wikitable"  
 
{| class="wikitable"  
|-
|-
!  |  
!  |
!  | apt (deb)
!  |apt (deb)
!  | yum (rpm)
!  |yum (rpm)
!  | zypper (rpm)
!  |zypper (rpm)
|-
|-
|  | '''Aus Repositories installieren'''
|  |'''Aus Repositories installieren'''
|  |apt-get install pkg-name
|  |apt-get install pkg-name
|  |yum install pkg-name
|  |yum install pkg-name
|  |zypper install pkg-name
|  |zypper install pkg-name
|-
|-
|  | '''Paket aktualisieren'''
|  |'''Paket aktualisieren'''
|  |apt-get install pkg-name
|  |apt-get install pkg-name
|  |yum update pkg-name
|  |yum update pkg-name
|  |zypper update -t package pkg-name
|  |zypper update -t package pkg-name
|-
|-
|  | '''Paket entfernen'''
|  |'''Paket entfernen'''
|  |apt-get remove pkg-name
|  |apt-get remove pkg-name
|  |yum erase pkg-name
|  |yum erase pkg-name
|  |zypper remove pkg-name
|  |zypper remove pkg-name
|-
|-
|  | '''Installation einer Paketdatei'''
|  |'''Installation einer Paketdatei'''
|  |dpkg -i pkg-name
|  |dpkg -i pkg-name
|  |yum localinstall pkg-name
|  |yum localinstall pkg-name
Zeile 28: Zeile 29:
|}
|}


=== Pakete suchen ===
===Pakete suchen===
{|class="wikitable"  
{| class="wikitable"  
|-
|-
!  |  
!  |
!  | apt (deb)
!  |apt (deb)
!  | yum (rpm)
!  |yum (rpm)
!  | zypper (rpm)
!  |zypper (rpm)
|-
|-
|  | '''Search by package name'''
|  |'''Search by package name'''
|  |apt-cache search pkg-name
|  |apt-cache search pkg-name
|  |yum list pkg-name
|  |yum list pkg-name
|  |zypper search pkg-name
|  |zypper search pkg-name
|-
|-
|  | '''Search by pattern'''
|  |'''Search by pattern'''
|  |apt-cache search pattern
|  |apt-cache search pattern
|  |yum search pattern
|  |yum search pattern
|  |zypper search -t pattern pattern
|  |zypper search -t pattern pattern
|-
|-
|  | '''Search by file name'''
|  |'''Search by file name'''
|  |apt-file search path
|  |apt-file search path
|  |yum provides file
|  |yum provides file
|  |zypper wp file
|  |zypper wp file
|-
|-
|  | '''List installed packages'''
|  |'''List installed packages'''
|  |dpkg -l
|  |dpkg -l
|  |rpm -qa
|  |rpm -qa
|  |zypper search -is
|  |zypper search -is
|-
|-
|  | '''Show package information'''
|  |'''Show package information'''
|  |apt-cache show pgk-name
|  |apt-cache show pgk-name
|  |yum info pkg-name
|  |yum info pkg-name
Zeile 62: Zeile 63:
|-
|-
|}
|}
=== Updating System ===
===Updating System===




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




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


== Links ==
==Links==  
# https://wiki.ubuntuusers.de/Paketverwaltung/
#https://wiki.ubuntuusers.de/Paketverwaltung/


[[Kategorie:Linux:Software]]
[[Kategorie:Linux:Software]]
__KEIN_INHALTSVERZEICHNIS__

Version vom 16. Juni 2022, 11:40 Uhr

apt (deb) yum (rpm) zypper (rpm)
Aus Repositories installieren apt-get install pkg-name yum install pkg-name zypper install pkg-name
Paket aktualisieren apt-get install pkg-name yum update pkg-name zypper update -t package pkg-name
Paket entfernen 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

Pakete suchen

apt (deb) yum (rpm) zypper (rpm)
Search by package name apt-cache search pkg-name yum list pkg-name zypper search pkg-name
Search by pattern apt-cache search pattern yum search pattern zypper search -t pattern 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 pkg-name zypper info pkg-name

Updating System

Task 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

Links

  1. https://wiki.ubuntuusers.de/Paketverwaltung/