Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
20
rated 0 times [  20] [ 0]  / answers: 1 / hits: 16367  / 2 Years ago, thu, august 25, 2022, 12:05:07

I like to put the contents of /etc inside git, so I can see what auto-updates change, and when something breaks, so I can go back and find out what I changed since it last worked.



At the moment I'm being told:



modified:   trusted.gpg
modified: trusted.gpg~


git diff is no use as these are binary files. Of course I could check them in, but these files are central to package security, so doing that would make mockery of my attempts at being secure! So, how do I find out what has changed?



As root I've tried:



cd /etc/apt
gpg -k trusted.gpg


(also tried --list-keys, --list-public-keys). It says gpg: error reading key: public key not found.



I'm sure it must just be a matter of discovering the correct parameters to give to gpg?


More From » apt

 Answers
3
$ apt-key list


From the docs on secure apt:




apt-key is a program that is used to manage a keyring of gpg keys for
secure apt. The keyring is kept in the file /etc/apt/trusted.gpg (not
to be confused with the related but not very interesting
/etc/apt/trustdb.gpg). apt-key can be used to show the keys in the
keyring, and to add or remove a key.



[#30365] Thursday, August 25, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
huovie

Total Points: 234
Total Questions: 99
Total Answers: 105

Location: Central African Republic
Member since Sun, Feb 26, 2023
1 Year ago
huovie questions
Mon, Aug 2, 21, 01:46, 3 Years ago
Thu, Feb 2, 23, 10:58, 1 Year ago
Thu, Oct 21, 21, 08:55, 3 Years ago
Sun, Dec 5, 21, 23:57, 2 Years ago
;