Sometimes it's necessary to obtain the GPG key from a repository directly, without downloading any packages from it. This article shows how to do it.
To obtain the GPG Key you will need the following data:
-
<repo_2.0_token>
: The repo token can be obtained from your account homepage Profile. -
<repo_name>
: Depending on your company's subscription, it can be eitherenterprise
orstandard
.
With this information in hand, you should run the following command, substituting the necessary values:
wget https://downloads.enterprisedb.com/<repo_2.0_token>/<repo_name>/gpg.key
The command above will download the gpg.key
file to the local directory.
That's it. You now have the updated GPG Key for your repository.