When I download GCC, it also has a .sig
file, and I think it is provided to verify downloaded file.
(I downloaded GCC from here).
But I can't figure out how should I use it. I tried gpg
, but it complains about public key.
[root@localhost src]# gpg --verify gcc-4.7.2.tar.gz.sig gcc-4.7.2.tar.gz
gpg: Signature made Thu 20 Sep 2012 07:30:44 PM KST using DSA key ID C3C45C06
gpg: Can't check signature: No public key
[root@localhost src]#
How can I verify downloaded file with .sig
file?
You have to search the public keyservers for the given key id: in your case
ID C3C45C06
Import the found key in your local keystore and after this the verification should be OK. I use Ubuntu 12.04 and it comes with Seahorse key management software. Before the key import I was seeing this:After the key import I was seeing this:
You need to import public key:
C3C45C06
Can be done in three steps.
1) find public key ID:
2) import the public key from key server. It's usually not needed to choose key server, but it can be done with
--keyserver <server>
. Keyserver examples.3) verify signature:
The output should say "Good signature".
Is for another question ;)
according to this http://gcc.gnu.org/mirrors.html that should be Jakub Jelinek and valid. i don't know where you would get his public key though.
This other avenue is particularly useful for verifying GNU projects (e.g. Octave) since the key requested by their signature may not be found in any key server.
From http://ftp.gnu.org/README