Difference between using or not using a GPG key for installing software from a repository

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite
2












Okay, as far as I've researched, to install software from a repository an identification key is used to sign a file (not encrypt it). We get the public key and the maintainer of the repo has the private key. The private key is used to sign a file and the public key is used to validate the authenticity of them.



So we need to register both the repo and the public key in our system.



But there are some cases where you just register the repo without the need of a public key and you can download packages from those repos.



Well, that's what I've understood so far.



For example:
To install MSSQL you need to register the repo as well as the public key.
But with NodeJS you just register the repo.



So what's the difference between using or not using a key? I know that it is to make sure that I'm getting the package from where I think I'm getting it from, but how does the system validate those packages coming from those registered repos with the keys registered in our system?



Basically, what's the workflow? That's what I'm trying to understand.







share|improve this question





















  • Exactly which repos supposedly don't need a public key?
    – user535733
    Jun 5 at 16:48










  • To answer your title only--In layman's terms they are passwords.
    – WinEunuuchs2Unix
    Jun 5 at 21:44














up vote
1
down vote

favorite
2












Okay, as far as I've researched, to install software from a repository an identification key is used to sign a file (not encrypt it). We get the public key and the maintainer of the repo has the private key. The private key is used to sign a file and the public key is used to validate the authenticity of them.



So we need to register both the repo and the public key in our system.



But there are some cases where you just register the repo without the need of a public key and you can download packages from those repos.



Well, that's what I've understood so far.



For example:
To install MSSQL you need to register the repo as well as the public key.
But with NodeJS you just register the repo.



So what's the difference between using or not using a key? I know that it is to make sure that I'm getting the package from where I think I'm getting it from, but how does the system validate those packages coming from those registered repos with the keys registered in our system?



Basically, what's the workflow? That's what I'm trying to understand.







share|improve this question





















  • Exactly which repos supposedly don't need a public key?
    – user535733
    Jun 5 at 16:48










  • To answer your title only--In layman's terms they are passwords.
    – WinEunuuchs2Unix
    Jun 5 at 21:44












up vote
1
down vote

favorite
2









up vote
1
down vote

favorite
2






2





Okay, as far as I've researched, to install software from a repository an identification key is used to sign a file (not encrypt it). We get the public key and the maintainer of the repo has the private key. The private key is used to sign a file and the public key is used to validate the authenticity of them.



So we need to register both the repo and the public key in our system.



But there are some cases where you just register the repo without the need of a public key and you can download packages from those repos.



Well, that's what I've understood so far.



For example:
To install MSSQL you need to register the repo as well as the public key.
But with NodeJS you just register the repo.



So what's the difference between using or not using a key? I know that it is to make sure that I'm getting the package from where I think I'm getting it from, but how does the system validate those packages coming from those registered repos with the keys registered in our system?



Basically, what's the workflow? That's what I'm trying to understand.







share|improve this question













Okay, as far as I've researched, to install software from a repository an identification key is used to sign a file (not encrypt it). We get the public key and the maintainer of the repo has the private key. The private key is used to sign a file and the public key is used to validate the authenticity of them.



So we need to register both the repo and the public key in our system.



But there are some cases where you just register the repo without the need of a public key and you can download packages from those repos.



Well, that's what I've understood so far.



For example:
To install MSSQL you need to register the repo as well as the public key.
But with NodeJS you just register the repo.



So what's the difference between using or not using a key? I know that it is to make sure that I'm getting the package from where I think I'm getting it from, but how does the system validate those packages coming from those registered repos with the keys registered in our system?



Basically, what's the workflow? That's what I'm trying to understand.









share|improve this question












share|improve this question




share|improve this question








edited Jun 6 at 14:42









unor

407321




407321









asked Jun 5 at 16:03









RottenCheese

61




61











  • Exactly which repos supposedly don't need a public key?
    – user535733
    Jun 5 at 16:48










  • To answer your title only--In layman's terms they are passwords.
    – WinEunuuchs2Unix
    Jun 5 at 21:44
















  • Exactly which repos supposedly don't need a public key?
    – user535733
    Jun 5 at 16:48










  • To answer your title only--In layman's terms they are passwords.
    – WinEunuuchs2Unix
    Jun 5 at 21:44















Exactly which repos supposedly don't need a public key?
– user535733
Jun 5 at 16:48




Exactly which repos supposedly don't need a public key?
– user535733
Jun 5 at 16:48












To answer your title only--In layman's terms they are passwords.
– WinEunuuchs2Unix
Jun 5 at 21:44




To answer your title only--In layman's terms they are passwords.
– WinEunuuchs2Unix
Jun 5 at 21:44















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1043856%2fdifference-between-using-or-not-using-a-gpg-key-for-installing-software-from-a-r%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1043856%2fdifference-between-using-or-not-using-a-gpg-key-for-installing-software-from-a-r%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error

How do I move numbers in filenames, in a batch renaming operation?