How to get the GPG key of a repository

Raphael Vieira
Raphael Vieira

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 either enterprise or standard.

With this information in hand, you should run the following command, substituting the necessary values:


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.

Was this article helpful?

0 out of 0 found this helpful