Mit Hilfe von zypper können Pakete unter SuSE auf der bash installiert werden bzw. das System aktualisiert werden.
Paketquelle einbinden
zypper ar -t YUM ftp://ftp...suse/11.2 <Was auch immer>
Paketinformationen aktualisieren (für Update)
zypper refresh oder zypper ref
Paket suchen
zypper search --search-descriptions iostat
verfügbare Updates auflisten
zypper list-updates oder zypper luS | Repository | Name | Current Version | Available Version | Arch --+----------------------+------------------------------------------+-----------------------------+--------------------------------+------- v | openSUSE-11.2-Update | MozillaFirefox | 3.5.4-1.1.2 | 3.6.17-0.2.1 | i586
verfügbare Patches auflisten
zypper patchesCatalog | Name | Version | Category | Status ---------------------+----------------------------------------+---------+-------------+--------------- openSUSE-11.2-Update | Botan | 3522 | recommended | Not Applicable openSUSE-11.2-Update | MozillaFirefox | 1597 | security | Needed
Paketinformationen anzeigen
zypper if MozillaFirefoxInformation for package MozillaFirefox: Repository: openSUSE-11.2-Update Name: MozillaFirefox Version: 3.6.17-0.2.1 Arch: i586 Vendor: openSUSE Installed: Yes Status: out-of-date (version 3.5.4-1.1.2 installed) Installed Size: 3.4 MiB Summary: Mozilla Firefox Web Browser Description: Mozilla Firefox is a standalone web browser, designed for standards compliance and performance. Its functionality can be enhanced via a plethora of extensions.
Updates einspielen
zypper update oder zypper up
Paket installieren
zypper install <Paket> oder zypper in <Paket>
Paket entfernen
zypper remove <Paket> oder zypper rm <Paket>
Paketabhängigkeiten prüfen
zypper verify oder zypper ve
Paket suchen
zypper search <Suchstring> oder zypper se <Suchstring>
lokalen Cache bereinigen
zypper clean
erst downloaden, dann installieren
Von Debian her kenn ich es so, dass Updates erst herunter geladen und anschließend installiert werden. Aus meiner Sicht ist es der Richtige Weg. Sollte nämlich bei der Installation eines Paketes die Netzwerkverbindung nicht mehr verfügbar sein, so können die restlichen Pakete auch nicht mehr herunter geladen werden. Zypper macht dies leider nicht so. Hier wird jedes herunter geladene Paket sofort installiert. Jedoch lässt sich dieses Verhalten mittels /etc/zypp/zypp.conf ändern.
## ## Commit download policy to use as default. ## ## DownloadOnly, Just download all packages to the local cache. ## Do not install. Implies a dry-run. ## ## DownloadInAdvance, First download all packages to the local cache. ## Then start to install. ## ## DownloadInHeaps, Similar to DownloadInAdvance, but try to split ## the transaction into heaps, where at the end of ## each heap a consistent system state is reached. ## ## DownloadAsNeeded Alternating download and install. Packages are ## cached just to avid CD/DVD hopping. This is the ## traditional behaviour. ## ## <UNSET> If a value is not set, empty or unknown, we pick ## some save default. ## ## commit.downloadMode = DownloadInAdvance
Links: