Zypper: Difference between revisions
From ICO wiki
Jump to navigationJump to search
No edit summary |
|||
Line 6: | Line 6: | ||
= Hoidla käitlemine = | = Hoidla käitlemine = | ||
* Hoidlate nimekiri | |||
<pre> | |||
zypper lr | |||
</pre> | |||
<pre> | |||
# | Alias | Name | Enabled | Refresh | |||
--+-----------------------+-----------------------+---------+-------- | |||
1 | packman | Packman 11.1 | Yes | No | |||
2 | fate | fate | No | No | |||
3 | openSUSE-11.1-Updates | Updates for 11.1 | Yes | Yes | |||
4 | repo-oss | openSUSE-11.1-Oss | Yes | No | |||
5 | repo-non-oss | openSUSE-11.1-Non-Oss | Yes | No | |||
6 | repo-debug | openSUSE-11.1-Debug | No | No | |||
</pre> | |||
* Lisa hoidla | |||
<pre> | |||
zypper ar [URL] | |||
</pre> | |||
<pre> | |||
# zypper ar http://download.videolan.org/pub/vlc/SuSE/11.1 vlc | |||
</pre> | |||
<pre> | |||
Adding repository 'vlc' [done] | |||
Repository 'vlc' successfully added | |||
Enabled: Yes | |||
Autorefresh: No | |||
URI: http://download.videolan.org/pub/vlc/SuSE/11.1 | |||
</pre> | |||
* Uuenda hoidlate nimekirja | |||
<pre> | |||
zypper ref | |||
</pre> | |||
<pre> | |||
Downloading repository 'Packman 11.1' metadata [done] | |||
Building repository 'Packman 11.1' cache [done] | |||
Downloading repository 'Updates for 11.1' metadata [done] | |||
Building repository 'Updates for 11.1' cache [done] | |||
Repository 'openSUSE-11.1-Oss' is up to date. | |||
All repositories have been refreshed. | |||
</pre> | |||
* Eemalda hoidla | |||
<pre> | |||
zypper rr [hoidla nimi] | |||
</pre> | |||
<pre> | |||
Repository 23 not found by alias, number or URI. | |||
Repository foo not found by alias, number or URI. | |||
Removing repository 'repo-debug' [done] | |||
Repository 'repo-debug' has been removed. | |||
Removing repository 'vlc' [done] | |||
Repository 'vlc' has been removed. | |||
</pre> | |||
* Hoidlate eksport/import | |||
<pre> | |||
zypper lr --export [Asukoht] | |||
zypper ar [Asukoht] | |||
</pre> | |||
= Paketti haldus = | = Paketti haldus = | ||
Line 39: | Line 85: | ||
== Otsing == | == Otsing == | ||
Vaike sättega otsitakse käsuga suvalist paki tüüpi staatust või haoidlat, kui paki nimes on otsitav tekst | |||
<pre> | |||
# zypper se sqlite | |||
</pre> | |||
<pre> | |||
Reading installed packages... | |||
S | Name | Summary | Type | |||
--+--------------------------+----------------------------------------------------------------+-------- | |||
| libapr-util1-dbd-sqlite3 | DBD driver for SQLite 3 | package | |||
i | libgda-3_0-sqlite | Sqlite Provider for GNU Data Access (GDA) | package | |||
| libqt4-sql-sqlite | Qt 4 sqlite plugin | package | |||
i | libsqlite3-0 | Shared libraries for the Embeddable SQL Database Engine | package | |||
| libsqlite3-0-32bit | Shared libraries for the Embeddable SQL Database Engine | package | |||
| mediatomb-sqlite | UPnP AV MediaServer | package | |||
i | mono-data-sqlite | Database connectivity for Mono | package | |||
| pdns-backend-sqlite2 | SQLite 2 backend for pdns | package | |||
| pdns-backend-sqlite3 | SQLite 3 backend for pdns | package | |||
i | perl-DBD-SQLite | The DBD::SQLite is a self contained RDBMS in a DBI driver | package | |||
i | php5-sqlite | PHP5 Extension Module | package | |||
| python-sqlite2 | Python bindings for sqlite 2 | package | |||
| qt3-sqlite | SQLite Database Plug-In for Qt | package | |||
| rekall-sqlite | Rekall sqlite Database Backend | package | |||
| rubygem-sqlite3 | A Ruby interface for the SQLite3 database engine | package | |||
i | sqlite2 | Embeddable SQL Database Engine | package | |||
| sqlite2-32bit | Embeddable SQL Database Engine | package | |||
| sqlite2-devel | Embeddable SQL Database Engine | package | |||
i | sqlite3 | Embeddable SQL Database Engine | package | |||
| sqlite3-devel | Embeddable SQL Database Engine | package | |||
| sqlite3-tcl | Tcl binding for SQLite | package | |||
| tntdb1-sqlite | Tntdb is a c++-class-library for easy database-access - sqlite | package | |||
| ulogd-sqlite | SQLite output plugin for ulogd | package | |||
</pre> | |||
I täht esimeses tulbas märgib et pakk on juba paigaldatud lokaalsesse arvutisse. Kui soovid näha kõikki paki versioone kasuta <code>--details/-s</code> valikut: | |||
<pre> | |||
# zypper search -s --match-exact virtualbox-ose | |||
</pre> | |||
<pre> | |||
Reading installed packages... | |||
S | Name | Type | Version | Arch | Repository | |||
--+----------------+---------+------------+--------+------------------------------------ | |||
v | virtualbox-ose | package | 1.6.2-2.1 | x86_64 | VirtualBox OSE | |||
i | virtualbox-ose | package | 1.5.6-33.1 | x86_64 | openSUSE-11.1-Oss | |||
v | virtualbox-ose | package | 1.5.6-20.5 | x86_64 | VirtualBox OSE ( | |||
v | virtualbox-ose | package | 1.6.2-2.1 | i586 | VirtualBox OSE | |||
v | virtualbox-ose | package | 1.5.6-33.1 | i586 | openSUSE-11.1-Oss | |||
v | virtualbox-ose | package | 1.5.6-20.3 | i586 | VirtualBox OSE | |||
</pre> | |||
V täht esimeses tulbas märgib, et paki muud versioonid on juba paigaldatud lokaalsele arvutile. | |||
== Paigaldus == | == Paigaldus == | ||
== Eemaldus == | == Eemaldus == |
Revision as of 07:54, 18 October 2012
Autor
- Marko Kurs
Sissejuhatus
Zypper on SUSE peal asuv paketihaldus rakendus. Erinevalt samuti SUSE peal asuvast YaST rakendusest on zypperi abil võimalik kiire käsauga pakke paigaldada ja eemaldada. Zypperi käsustiku struktuur on väga sarnane apt-get käsustikuga. Zypper on paketi haldus mootori ZYpp(libzypp) käsurea liides.
Hoidla käitlemine
- Hoidlate nimekiri
zypper lr
# | Alias | Name | Enabled | Refresh --+-----------------------+-----------------------+---------+-------- 1 | packman | Packman 11.1 | Yes | No 2 | fate | fate | No | No 3 | openSUSE-11.1-Updates | Updates for 11.1 | Yes | Yes 4 | repo-oss | openSUSE-11.1-Oss | Yes | No 5 | repo-non-oss | openSUSE-11.1-Non-Oss | Yes | No 6 | repo-debug | openSUSE-11.1-Debug | No | No
- Lisa hoidla
zypper ar [URL]
# zypper ar http://download.videolan.org/pub/vlc/SuSE/11.1 vlc
Adding repository 'vlc' [done] Repository 'vlc' successfully added Enabled: Yes Autorefresh: No URI: http://download.videolan.org/pub/vlc/SuSE/11.1
- Uuenda hoidlate nimekirja
zypper ref
Downloading repository 'Packman 11.1' metadata [done] Building repository 'Packman 11.1' cache [done] Downloading repository 'Updates for 11.1' metadata [done] Building repository 'Updates for 11.1' cache [done] Repository 'openSUSE-11.1-Oss' is up to date. All repositories have been refreshed.
- Eemalda hoidla
zypper rr [hoidla nimi]
Repository 23 not found by alias, number or URI. Repository foo not found by alias, number or URI. Removing repository 'repo-debug' [done] Repository 'repo-debug' has been removed. Removing repository 'vlc' [done] Repository 'vlc' has been removed.
- Hoidlate eksport/import
zypper lr --export [Asukoht] zypper ar [Asukoht]
Paketti haldus
- paigaldada / eemaldada pakette nime või võimaluste järgi
- paigaldada / eemaldada pakette nimedega
- paigaldada / eemaldada spetsiifilisi pakettide versioone
- paigaldada tavalisi RPM faile ja rahuldada sõltuvusi hoidlast
- paigaldada ja eemaldada mitu paketti ühe korraga (kasutades + / - või ~ /!)
- valida hoidla pakendi kohta, lisades nimele prefiksi "repo_alias:"
- uuendada kõiki installitud pakette uusima saadaval oleva versioonini
- paigaldada mustrid / tooted / paigad
- põhjalik paigalduste kokkuvõte
- väldi soovituslikke pakkide paigaldamist (paigalda ainult nõutud)
Otsing
Vaike sättega otsitakse käsuga suvalist paki tüüpi staatust või haoidlat, kui paki nimes on otsitav tekst
# zypper se sqlite
Reading installed packages... S | Name | Summary | Type --+--------------------------+----------------------------------------------------------------+-------- | libapr-util1-dbd-sqlite3 | DBD driver for SQLite 3 | package i | libgda-3_0-sqlite | Sqlite Provider for GNU Data Access (GDA) | package | libqt4-sql-sqlite | Qt 4 sqlite plugin | package i | libsqlite3-0 | Shared libraries for the Embeddable SQL Database Engine | package | libsqlite3-0-32bit | Shared libraries for the Embeddable SQL Database Engine | package | mediatomb-sqlite | UPnP AV MediaServer | package i | mono-data-sqlite | Database connectivity for Mono | package | pdns-backend-sqlite2 | SQLite 2 backend for pdns | package | pdns-backend-sqlite3 | SQLite 3 backend for pdns | package i | perl-DBD-SQLite | The DBD::SQLite is a self contained RDBMS in a DBI driver | package i | php5-sqlite | PHP5 Extension Module | package | python-sqlite2 | Python bindings for sqlite 2 | package | qt3-sqlite | SQLite Database Plug-In for Qt | package | rekall-sqlite | Rekall sqlite Database Backend | package | rubygem-sqlite3 | A Ruby interface for the SQLite3 database engine | package i | sqlite2 | Embeddable SQL Database Engine | package | sqlite2-32bit | Embeddable SQL Database Engine | package | sqlite2-devel | Embeddable SQL Database Engine | package i | sqlite3 | Embeddable SQL Database Engine | package | sqlite3-devel | Embeddable SQL Database Engine | package | sqlite3-tcl | Tcl binding for SQLite | package | tntdb1-sqlite | Tntdb is a c++-class-library for easy database-access - sqlite | package | ulogd-sqlite | SQLite output plugin for ulogd | package
I täht esimeses tulbas märgib et pakk on juba paigaldatud lokaalsesse arvutisse. Kui soovid näha kõikki paki versioone kasuta --details/-s
valikut:
# zypper search -s --match-exact virtualbox-ose
Reading installed packages... S | Name | Type | Version | Arch | Repository --+----------------+---------+------------+--------+------------------------------------ v | virtualbox-ose | package | 1.6.2-2.1 | x86_64 | VirtualBox OSE i | virtualbox-ose | package | 1.5.6-33.1 | x86_64 | openSUSE-11.1-Oss v | virtualbox-ose | package | 1.5.6-20.5 | x86_64 | VirtualBox OSE ( v | virtualbox-ose | package | 1.6.2-2.1 | i586 | VirtualBox OSE v | virtualbox-ose | package | 1.5.6-33.1 | i586 | openSUSE-11.1-Oss v | virtualbox-ose | package | 1.5.6-20.3 | i586 | VirtualBox OSE
V täht esimeses tulbas märgib, et paki muud versioonid on juba paigaldatud lokaalsele arvutile.