Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.
| Наступна ревізія | Попередня ревізія | ||
|
software:os:linux:additional_repos [2022/08/17 15:25] charon створено |
software:os:linux:additional_repos [2023/02/14 19:58] (поточний) charon [Add signing key for repository] |
||
|---|---|---|---|
| Рядок 1: | Рядок 1: | ||
| ====== How to add 3rd party repository in Ubuntu ====== | ====== How to add 3rd party repository in Ubuntu ====== | ||
| Things become more and more complicated, | Things become more and more complicated, | ||
| + | |||
| + | ===== Add signing key for repository ===== | ||
| + | You should always put signing key path to repository, like this: | ||
| + | deb [signed-by=/ | ||
| + | |||
| + | <WRAP center round important 60%> | ||
| + | The key MUST NOT be placed in /// | ||
| + | </ | ||
| + | |||
| + | <WRAP center round info 60%> | ||
| + | If future updates to the key will be managed by an apt/dpkg package, then it SHOULD be downloaded into /// | ||
| + | </ | ||
| + | |||
| + | I think it means if you need to bother with key, then just put it to /// | ||
| + | |||
| + | ===== Using new .sources ===== | ||
| + | .sources file instead of a .list file. This method is relatively new, and uses the deb822 multiline format that is less ambiguous compared to the deb . . . declaration, | ||
| + | Types: deb | ||
| + | Architectures: | ||
| + | Signed-By: / | ||
| + | URIs: https:// | ||
| + | Suites: jammy | ||
| + | Components: main | ||
| + | |||
| + | ===== How to get the key ===== | ||
| + | There are two ways, depending on what package developer implemented | ||
| + | |||
| + | ==== 1. Download key from keyserver or keyserver pool ==== | ||
| + | sudo gpg --homedir /tmp --no-default-keyring --keyring / | ||
| + | keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB6517111119E084DAB9 | ||
| + | |||
| + | ==== 2. Download key in file from developer' | ||
| + | curl -fsSL https:// | ||
| + | Check if key is armored (looks like ASCII text and not binary), and if so, unarmor it: | ||
| + | curl -fsSL https:// | ||
| + | Move the key to /// | ||
| + | mv dbeaver.gpg / | ||
| + | |||
| + | ===== Links ===== | ||
| + | * [[https:// | ||