From 08f2d7960eac9bbb01ba9c3099bec9127eaac7ff Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Thu, 3 Aug 2023 23:22:06 +0200 Subject: [PATCH] feat: zypper repositories section --- knowledge base/zypper.md | 38 ++++++++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/knowledge base/zypper.md b/knowledge base/zypper.md index cf5f3db..f04c357 100644 --- a/knowledge base/zypper.md +++ b/knowledge base/zypper.md @@ -6,8 +6,10 @@ SUSE and openSUSE GNU/Linux's package management utility and command-line interf 1. [TL;DR](#tldr) 1. [Concepts](#concepts) + 1. [Repositories](#repositories) 1. [Gotchas](#gotchas) 1. [Further readings](#further-readings) +1. [Sources](#sources) ## TL;DR @@ -92,13 +94,12 @@ zypper dup --details --from 'factory' --from 'packman' # List currently defined repositories. zypper repos -zypper rl -d +zypper rl -d --sort-by-priority # Add repositories. zypper addrepo --check --refresh --priority '90' \ - 'https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/' \ - 'packman' -zypper ar … + 'https://repo.vivaldi.com/archive/vivaldi-suse.repo' 'vivaldi' +zypper ar -cf -p '89' … # Remove repositories. zypper removerepo 'mozilla' @@ -139,6 +140,21 @@ They might be **packages**, **patches**, **patterns**, **products**, or basicall If one does not request specific versions of resolvables during an action, Zypper's dependency solver will pick a _reasonable_ one automatically. +### Repositories + +The **lower** the number given to their `priority` setting, the **higher** the precedence of that repository.
+This means that a repository with priority 90 will have precedence on repositories with the default priority of 99. + +[Default (distribution) repositories][package repositories], [additional repositories][additional package repositories]. + +Repositories of interest: + +| Name | URL | Description | +| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------- | +| Packman (all) |
| The largest external repository of openSUSE packages | +| Mozilla |
| Bleeding edge versions of Firefox, Thunderbird and all things Mozilla | +| Vivaldi | | A browser adapting to you, not the other way around. | + ## Gotchas Global options **must** be specified **before** the command name.
@@ -155,10 +171,24 @@ sudo rpm --query --list 'parallel' - [rpm] - [How can I list all files which have been installed by an ZYpp/Zypper package?] +## Sources + +All the references in the [further readings] section, plus the following: + +- [Package repositories] +- [Additional package repositories] + + +[additional package repositories]: https://en.opensuse.org/Additional_package_repositories +[package repositories]: https://en.opensuse.org/Package_repositories + + +[further readings]: #further-readings + [rpm]: rpm.md