Tool to convert apt trusted.gpg file into multiple trusted.gpg.d files
Project description
convert-trusted-gpg
This tool read the APT key store's single file and creates multiple files, one for each key.
Doing this will prevent the deprecation warning when running apt update
W: https://example.com/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
The tool accomplishes this by
- Reading all the keys inside the
/etc/apt/trusted.gpgfile - For each key, if that key doesn't exist in its own file in
/etc/apt/trusted.gpg.d/, the tool creates a new file in thetrusted.gpg.ddirectory containing the key
The tool bases the new file's filename on the name and email address of the key.
The tool assumes that apt version >=1.4 is installed which supports ASCII armored keys
with an .asc extension instead of binary keys with a .gpg extension.
Usage
sudo convert-trusted-gpg
Example output
Skipping 1EDDE2CDFC025D17F6DA9EC0ADAE6AD28A8F901A as it already exists in /etc/apt/trusted.gpg.d/
Skipping 37C84554E7E0A261E4F76E1ED26E6ED000654A3E as it already exists in /etc/apt/trusted.gpg.d/
Creating /etc/apt/trusted.gpg.d/WineHQ_packages_wine-develwinehq.org.asc
Creating /etc/apt/trusted.gpg.d/NodeSource_gpgnodesource.com.asc
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file convert_trusted_gpg-1.0.0.tar.gz.
File metadata
- Download URL: convert_trusted_gpg-1.0.0.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2aa658b8cd7add18f11f3db076f7cf3dc387dfc4caa45947ac8469c8b42a009
|
|
| MD5 |
df13887f679685567cb3ba1eaa7c6ebe
|
|
| BLAKE2b-256 |
74e78d3dc76754178aa6bd264a923551c421f64ed37b219d9b078c6050206970
|
File details
Details for the file convert_trusted_gpg-1.0.0-py3-none-any.whl.
File metadata
- Download URL: convert_trusted_gpg-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48bcea5514e20a78717fedba8a07f5e84a1a7730b77d231f73b6f9531e99d9d2
|
|
| MD5 |
a4f385f3d9aa9c0ac323c942fa636e2d
|
|
| BLAKE2b-256 |
29b73922c8d25318fe33a902263f97ae32e46a01bc897c349fb11fbb18bb314e
|