...
No Format |
---|
sudo packagecloud-ctl reconfigure |
Important note about changing GPG keys
If you are changing the GPG key used for metadata signing and you have existing repositories with packages, you must run a task to regenerate the repository metadata and re-sign it with your new key.
To do this, run the command:
No Format |
---|
sudo packagecloud-ctl reindex-all |
Depending on the number of packages, repos, and background workers you have, this may take some time to complete.
...
The packages themselves are not downloaded or modified during this process.
You must also run
No Format |
---|
sudo packagecloud-ctl reconfigure |
after changing your GPG key, as explained below.
...
Next, you'll want to import the key. Keys are import via standard input, and you can script this using a shell heredoc:
No Format |
---|
sudo packagecloud-ctl gpg-private-key-import /etc/packagecloud/gpgkey <<EOF -----BEGIN PGP PRIVATE KEY BLOCK-----
Version: GnuPG v1
...
EOF |
...
After importing your key, you must run:
...
If you are importing a new key to use and you have existing repositories, please see the section above "Important note about changing GPG keys".
GPG public and private key export
...
To print your GPG public key:
No Format |
---|
sudo packagecloud-ctl gpg-public-key-dump |
To print your GPG private key:
No Format |
---|
sudo packagecloud-ctl gpg-private-key-dump |