Користувальницькькі налаштування

Налаштування сайту


software:os:linux:additional_repos

Розбіжності

Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.

Посилання на цей список змін

Порівняння попередніх версій Попередня ревізія
Наступна ревізія
Попередня ревізія
software:os:linux:additional_repos [2022/08/17 16:03]
charon [Download key in file from developer's location]
software:os:linux:additional_repos [2023/02/14 19:58] (поточний)
charon [Add signing key for repository]
Рядок 16: Рядок 16:
 I think it means if you need to bother with key, then just put it to ///etc/apt/keyrings// I think it means if you need to bother with key, then just put it to ///etc/apt/keyrings//
  
 +===== 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, though is functionally identical. Create a new file:
 +  Types: deb
 +  Architectures: amd64 arm64
 +  Signed-By: /usr/share/keyrings/nodesource.gpg
 +  URIs: https://deb.nodesource.com/node_16.x
 +  Suites: jammy
 +  Components: main
 + 
 ===== How to get the key ===== ===== How to get the key =====
 There are two ways, depending on what package developer implemented There are two ways, depending on what package developer implemented
  
-==== Download key from keyserver or keyserver pool ==== +==== 1. Download key from keyserver or keyserver pool ==== 
-First, download the key from keyserver to local user storage: +  sudo gpg --homedir /tmp --no-default-keyring --keyring /etc/apt/keyrings/usefulpackage.gpg --keyserver 
-  gpg --keyserver keyserver.ubuntu.com --recv-keys D33A1BD725ED047D +  keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB6517111119E084DAB9
-Another keyserver: //keys.openpgp.org//+
  
-After that export key to file and put it to keyring directory: +==== 2. Download key in file from developer's location ==== 
-  gpg --export D33A1BD725ED047D |sudo tee /etc/apt/keyrings/usefulpackage.gpg +  curl -fsSL https://dbeaver.io/debs/dbeaver.gpg.key > dbeaver.gpg
-<WRAP center round important 60%> +
-I didn't find out whether key should be ascii-armored or not. Most likely should be unarmored (binary). +
-</WRAP> +
- +
-==== Download key in file from developer's location ==== +
-  curl https://dbeaver.io/debs/dbeaver.gpg.key > dbeaver.gpg+
 Check if key is armored (looks like ASCII text and not binary), and if so, unarmor it: Check if key is armored (looks like ASCII text and not binary), and if so, unarmor it:
-  curl https://dbeaver.io/debs/dbeaver.gpg.key | gpg --dearmor dbeaver.gpg+  curl -fsSL https://dbeaver.io/debs/dbeaver.gpg.key | gpg --dearmor -o dbeaver.gpg
 Move the key to ///etc/apt/keyrings//: Move the key to ///etc/apt/keyrings//:
   mv dbeaver.gpg /etc/apt/keyrings/   mv dbeaver.gpg /etc/apt/keyrings/
  
- +===== Links ===== 
-[[https://wiki.debian.org/DebianRepository/UseThirdParty|Instructions to connect to a third-party repository]]+  [[https://wiki.debian.org/DebianRepository/UseThirdParty|Instructions to connect to a third-party repository]]
software/os/linux/additional_repos.1660741406.txt.gz · Востаннє змінено: 2022/08/17 16:03 повз charon