差異處
這裏顯示兩個版本的差異處。
linux:software_installation:repository:sles15_zypper [2019/07/09 13:16] tony |
linux:software_installation:repository:sles15_zypper [2023/06/25 09:48] |
||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== SLES15 - zypper ====== | ||
- | ===== List repository ===== | ||
- | cmd: | ||
- | <code bash> | ||
- | zypper repos | ||
- | zypper lr | ||
- | </code> | ||
- | output: | ||
- | <code bash> | ||
- | Repository priorities are without effect. All enabled repositories share the same priority. | ||
- | |||
- | # | Alias | Name | Enabled | GPG Check | Refresh | ||
- | --+-------------+-------------+---------+-----------+-------- | ||
- | 1 | SLES15-15-0 | SLES15-15-0 | Yes | (r ) Yes | No | ||
- | </code> | ||
- | 假如要知道repository來源就加-d: | ||
- | <code bash> | ||
- | zypper repos -d | ||
- | zypper lr -d | ||
- | </code> | ||
- | ===== Search packages ===== | ||
- | cmd: | ||
- | <code bash> | ||
- | zypper search-packages ipmitool | ||
- | </code> | ||
- | output: | ||
- | <code bash> | ||
- | Following packages were found in following modules: | ||
- | |||
- | Package Module or Repository | ||
- | -------- --------------------------------------------------- | ||
- | ipmitool Basesystem Module (sle-module-basesystem/15/x86_64) | ||
- | |||
- | To activate the respective module or product, use SUSEConnect --product. | ||
- | Use SUSEConnect --help for more details. | ||
- | </code> | ||
- | 假如要把套件描述內容加入搜尋條件,可以加-d。 | ||
- | |||
- | ===== Reference ===== | ||
- | * [[http://maxubuntu.blogspot.com/2012/06/zypper.html|zypper筆記]] | ||
- | |||
- | |||