Normalisation de récupération de clés GPG pour les dépôts externes

This commit is contained in:
Jérémy Lecour 2021-06-08 10:23:00 +02:00 committed by Jérémy Lecour
parent 0d20332d75
commit d2c718f7ab
10 changed files with 29 additions and 13 deletions

View file

@ -127,7 +127,9 @@ On commence par installer `ceph-deploy`, l'outil qui permet de déployer un clus
~~~ ~~~
# apt update && apt install apt-transport-https # apt update && apt install apt-transport-https
# wget https://download.ceph.com/keys/release.asc -O /etc/apt/trusted.gpg.d/ceph.asc # wget -O /etc/apt/trusted.gpg.d/ceph.asc https://download.ceph.com/keys/release.asc
# dos2unix /etc/apt/trusted.gpg.d/ceph.asc
# chmod 644 /etc/apt/trusted.gpg.d/ceph.asc
# echo deb https://download.ceph.com/debian-luminous/ $(lsb_release -sc) main | tee /etc/apt/sources.list.d/ceph.list # echo deb https://download.ceph.com/debian-luminous/ $(lsb_release -sc) main | tee /etc/apt/sources.list.d/ceph.list
# apt update && apt install ceph-deploy # apt update && apt install ceph-deploy
~~~ ~~~

View file

@ -15,7 +15,9 @@ Vu le développement actif d'Elasticsearch, nous préconisons l'installation des
~~~ ~~~
# apt install apt-transport-https # apt install apt-transport-https
# echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" >> /etc/apt/sources.list.d/elastic.list # echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" >> /etc/apt/sources.list.d/elastic.list
# wget https://artifacts.elastic.co/GPG-KEY-elasticsearch -O /etc/apt/trusted.gpg.d/elastic.asc # wget -O /etc/apt/trusted.gpg.d/elastic.asc https://artifacts.elastic.co/GPG-KEY-elasticsearch
# dos2unix /etc/apt/trusted.gpg.d/elastic.asc
# chmod 644 /etc/apt/trusted.gpg.d/elastic.asc
# apt update # apt update
# apt install elasticsearch # apt install elasticsearch
~~~ ~~~

View file

@ -13,9 +13,10 @@ title: Howto Grafana
Grafana n'étant pas disponible sous Debian Stretch, nous utilisons les dépôts fournis par GrafanaLabs. Grafana n'étant pas disponible sous Debian Stretch, nous utilisons les dépôts fournis par GrafanaLabs.
~~~ ~~~
# wget https://packages.grafana.com/gpg.key -O /etc/apt/trusted.gpg.d/grafana.asc
# chown _apt /etc/apt/trusted.gpg.d/grafana.asc
# echo "deb https://packages.grafana.com/oss/deb stable main" > /etc/apt/sources.list.d/grafana.list # echo "deb https://packages.grafana.com/oss/deb stable main" > /etc/apt/sources.list.d/grafana.list
# wget -O /etc/apt/trusted.gpg.d/grafana.asc https://packages.grafana.com/gpg.key
# dos2unix /etc/apt/trusted.gpg.d/grafana.asc
# chmod 644 /etc/apt/trusted.gpg.d/grafana.asc
# apt update # apt update
# apt install grafana # apt install grafana
# systemctl daemon-reload # systemctl daemon-reload

View file

@ -21,7 +21,7 @@ Il est néanmoins possible d'installé MongoDB 4.2 à partir des dépôts offici
~~~ ~~~
# echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.2 main" >> /etc/apt/sources.list.d/mongodb-org-4.2.list # echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.2 main" >> /etc/apt/sources.list.d/mongodb-org-4.2.list
# wget https://www.mongodb.org/static/pgp/server-4.2.asc -O /etc/apt/trusted.gpg.d/mongo-org-4.2.asc # wget https://www.mongodb.org/static/pgp/server-4.2.asc -O /etc/apt/trusted.gpg.d/mongodb-server-4.2.asc
# apt update && apt install mongodb-org # apt update && apt install mongodb-org
~~~ ~~~
@ -49,7 +49,7 @@ Exemple ici pour MongoDB 3.6
~~~ ~~~
# echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/3.6 main" >> /etc/apt/sources.list.d/mongodb-org-3.6.list # echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/3.6 main" >> /etc/apt/sources.list.d/mongodb-org-3.6.list
# wget https://www.mongodb.org/static/pgp/server-3.6.asc -O /etc/apt/trusted.gpg.d/mongo-org-3.6.asc # wget https://www.mongodb.org/static/pgp/server-3.6.asc -O /etc/apt/trusted.gpg.d/mongodb-server-3.6.asc
# apt update && apt install mongodb-org # apt update && apt install mongodb-org
~~~ ~~~

View file

@ -10,13 +10,15 @@ title: Howto neo4j
Ajouter dans le fichier _/etc/apt/sources.list.d/neo4j.list_ : Ajouter dans le fichier _/etc/apt/sources.list.d/neo4j.list_ :
~~~ ~~~
deb <http://debian.neo4j.org/repo> stable/ deb http://debian.neo4j.org/repo stable/
~~~ ~~~
Puis importer la clé : Puis importer la clé :
~~~ ~~~
# wget -O - <http://debian.neo4j.org/neotechnology.gpg.key> | apt-key add - # wget -O /etc/apt/trusted.gpg.d/neotechnology http://debian.neo4j.org/neotechnology.gpg.key
# dos2unix /etc/apt/trusted.gpg.d/neotechnology.asc
# chmod 644 /etc/apt/trusted.gpg.d/neotechnology.asc
~~~ ~~~
Installer ensuite neo4j et Java : Installer ensuite neo4j et Java :

View file

@ -8,8 +8,9 @@ Doc officielle : <https://docs.newrelic.com/docs/servers/new-relic-servers-linux
~~~ ~~~
# echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' > /etc/apt/sources.list.d/newrelic.list # echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' > /etc/apt/sources.list.d/newrelic.list
# wget https://download.newrelic.com/548C16BF.gpg -O /etc/apt/trusted.gpg.d/newrelic.asc # wget -O /etc/apt/trusted.gpg.d/newrelic.asc https://download.newrelic.com/548C16BF.gpg
# dos2unix /etc/apt/trusted.gpg.d/newrelic.asc # dos2unix /etc/apt/trusted.gpg.d/newrelic.asc
# chmod 644 /etc/apt/trusted.gpg.d/newrelic.asc
# apt update # apt update
# apt install newrelic-sysmond # apt install newrelic-sysmond
# nrsysmond-config --set license_key=<votre clé de licence> # nrsysmond-config --set license_key=<votre clé de licence>
@ -23,7 +24,9 @@ Doc officielle : <https://docs.newrelic.com/docs/agents/php-agent>
~~~ ~~~
# echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' > /etc/apt/sources.list.d/newrelic.list # echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' > /etc/apt/sources.list.d/newrelic.list
# wget -O - https://download.newrelic.com/548C16BF.gpg | apt-key add - # wget -O /etc/apt/trusted.gpg.d/newrelic.asc https://download.newrelic.com/548C16BF.gpg
# dos2unix /etc/apt/trusted.gpg.d/newrelic.asc
# chmod 644 /etc/apt/trusted.gpg.d/newrelic.asc
# apt update # apt update
# apt install newrelic-php5 # apt install newrelic-php5
# newrelic-install install # newrelic-install install

View file

@ -18,7 +18,9 @@ deb-src <http://debian.opennms.org> stable main
Et ensuite la clé GPG : Et ensuite la clé GPG :
~~~ ~~~
#wget -O - <http://debian.opennms.org/OPENNMS-GPG-KEY> | apt-key add - # wget -O /etc/apt/trusted.gpg.d/opennms.asc http://debian.opennms.org/OPENNMS-GPG-KEY
# dos2unix /etc/apt/trusted.gpg.d/opennms.asc
# chmod 644 /etc/apt/trusted.gpg.d/opennms.asc
~~~ ~~~
L'installation de OpenNMS nécessite : L'installation de OpenNMS nécessite :

View file

@ -63,6 +63,7 @@ Exemple, si on souhaite seulement php7.3 :
~~~ ~~~
# apt install wget apt-transport-https # apt install wget apt-transport-https
# wget -O /etc/apt/trusted.gpg.d/sury.gpg https://packages.sury.org/php/apt.gpg # wget -O /etc/apt/trusted.gpg.d/sury.gpg https://packages.sury.org/php/apt.gpg
# dos2unix /etc/apt/trusted.gpg.d/sury.gpg
# chmod 644 /etc/apt/trusted.gpg.d/sury.gpg # chmod 644 /etc/apt/trusted.gpg.d/sury.gpg
# echo "deb https://packages.sury.org/php/ stretch main" > /etc/apt/sources.list.d/sury.list # echo "deb https://packages.sury.org/php/ stretch main" > /etc/apt/sources.list.d/sury.list
# cat << EOT > /etc/apt/preferences.d/z-sury # cat << EOT > /etc/apt/preferences.d/z-sury

View file

@ -49,7 +49,9 @@ deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main
Puis récupérer la clé GPG : Puis récupérer la clé GPG :
~~~ ~~~
# wget https://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc -O /etc/apt/trusted.gpg.d/postgresql-org.asc # wget -O /etc/apt/trusted.gpg.d/postgresql.asc https://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc
# dos2unix /etc/apt/trusted.gpg.d/postgresql.asc
# chmod 644 /etc/apt/trusted.gpg.d/postgresql.asc
~~~ ~~~
On peut ainsi installer proprement PostgresSQL 11 - par exemple - en définissant les priorités via `/etc/apt/preferences.d/postgresql` : On peut ainsi installer proprement PostgresSQL 11 - par exemple - en définissant les priorités via `/etc/apt/preferences.d/postgresql` :

View file

@ -15,8 +15,9 @@ Source: https://support.tideways.com/documentation/setup/installation/debian-
```sh ```sh
apt install wget gnupg apt-transport-https apt install wget gnupg apt-transport-https
echo 'deb https://packages.tideways.com/apt-packages-main any-version main' | tee /etc/apt/sources.list.d/tideways.list echo 'deb https://packages.tideways.com/apt-packages-main any-version main' | tee /etc/apt/sources.list.d/tideways.list
wget -qO - https://packages.tideways.com/key.gpg > /etc/apt/trusted.gpg.d/tideways.asc wget -O /etc/apt/trusted.gpg.d/tideways.asc https://packages.tideways.com/key.gpg
dos2unix /etc/apt/trusted.gpg.d/tideways.asc dos2unix /etc/apt/trusted.gpg.d/tideways.asc
chmod 644 /etc/apt/trusted.gpg.d/tideways.asc
apt update apt update
apt install tideways-php tideways-daemon apt install tideways-php tideways-daemon
``` ```