My question from yesterday caused me to research and understand keys, I've got to the point where I understand mostly how it works. I get that apt-key is depreciated and why etc.
Here's what I need help understanding:
When storing keys for repos for use of APT, where should I store the gpg file at? I see lots of helpful articles, but they seem to mention two places interchangeably.
/etc/apt/trusted.gpg.d/
/usr/share/keyrings/
I see it's easy enough to edit the .list file located in etc/apt/sources.list.d (which is where I understand the proper location to store each repo, not all combined together in the sources.list file).
Anyway, I decided to store them in /usr/share/keyrings but I also notice I have several files in trusted.gpg.d, but instead of the actual keyName.gpg it says keyName.gpg~
So to rephrase what my questions are
1. What is the purpose behind the two folders. Is the trusted.gpg.d folder specifically only for use with apt, but if it doesn't find one there, it looks in keyring folder?
2. If you can use either folder like my tutorials stated, which is preferred for apt repo keys?
3. Is it a good idea to backup this folder? It was annoying fixing all my warnings from apt-key and most instructions on websites still use apt-key. I'd hate to have to go through this individually all over again. I guess, are these special where you can't just back it up, copy and past won't work with them maybe? Do I have to do an export function and save them that way?
4. And Finally, what is the "~" file. It says it is a "backup" file. What exactly does this mean, can I delete them? Some are old, like I have a system76-ubuntu-pop.gpg~ key in there. The only thing I can think of is when I wiped my computer and re-synced my .config folder, one of the dot files from there created that backup from when I was using POPOS. I don't know how else that got in there, I didn't backup or restore this folder or anything outside my .config folder.
I know that's a lot, I tried to find out all the info I could for myself, but I can't find the answer to those bits of my questions.
Thanks all.
Here's what I need help understanding:
When storing keys for repos for use of APT, where should I store the gpg file at? I see lots of helpful articles, but they seem to mention two places interchangeably.
/etc/apt/trusted.gpg.d/
/usr/share/keyrings/
I see it's easy enough to edit the .list file located in etc/apt/sources.list.d (which is where I understand the proper location to store each repo, not all combined together in the sources.list file).
Anyway, I decided to store them in /usr/share/keyrings but I also notice I have several files in trusted.gpg.d, but instead of the actual keyName.gpg it says keyName.gpg~
So to rephrase what my questions are
1. What is the purpose behind the two folders. Is the trusted.gpg.d folder specifically only for use with apt, but if it doesn't find one there, it looks in keyring folder?
2. If you can use either folder like my tutorials stated, which is preferred for apt repo keys?
3. Is it a good idea to backup this folder? It was annoying fixing all my warnings from apt-key and most instructions on websites still use apt-key. I'd hate to have to go through this individually all over again. I guess, are these special where you can't just back it up, copy and past won't work with them maybe? Do I have to do an export function and save them that way?
4. And Finally, what is the "~" file. It says it is a "backup" file. What exactly does this mean, can I delete them? Some are old, like I have a system76-ubuntu-pop.gpg~ key in there. The only thing I can think of is when I wiped my computer and re-synced my .config folder, one of the dot files from there created that backup from when I was using POPOS. I don't know how else that got in there, I didn't backup or restore this folder or anything outside my .config folder.
I know that's a lot, I tried to find out all the info I could for myself, but I can't find the answer to those bits of my questions.
Thanks all.
Comment