LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-22-2001, 03:37 AM   #1
Rimmer
Member
 
Registered: Feb 2001
Location: 3 million years into deep space
Posts: 42

Rep: Reputation: 15

I decided to try to install Ximian GNOME 1.4. For each rpm file in the ftp directory, there is a rpm.sig file. What are these here for? Any information would be greatly appreciated

Rimmer
 
Old 05-22-2001, 04:57 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
.sig/.sign means signature. So this is a file signature. Its used so ppl know for sure a package has not been tampered with. Ppl use md5sum, PGP or GNUPGP for signing.
 
Old 05-22-2001, 10:04 AM   #3
Rimmer
Member
 
Registered: Feb 2001
Location: 3 million years into deep space
Posts: 42

Original Poster
Rep: Reputation: 15
Yes but how do you use them?

I normally do a "rpm --checksig *.rpm" on packages I download. Packages that didnt download properly (which happens to me a lot) will says they are not ok. However, when I do this for the Ximian GNOME 1.4 packages they all say:

md5 (GPG) OK (MISSING KEYS: GPG#FD4FE9E9)

or something similar. I'm guessing that the missing key is in the rpm.sig file? So how do I make rpm check the file package against the rpm.sig file?
 
Old 07-19-2001, 12:42 AM   #4
kop
LQ Newbie
 
Registered: Jul 2001
Posts: 24

Rep: Reputation: 15
Using "rpm --checksig"

Before using rpm's --checksig option, you need to obtain the public key of the person/institution that signed the package. You can get the pubic key from the offical web site (and assume it's not been hacked), from an e-mail, from a pgp keyserver, or where ever. (Once you do, you can use the key's fingerprint to verify the key with a trusted source and then you can sign the key and so record how much trust you have in the key. How far you want to go depends on how paranoid you are and how much you want to participate in the "web of trust.")

Here's an example, to be able to check the signature of packages signed by RedHat Inc.:


Go to:

http://www.redhat.com/about/contact/pgpkey.html

and obtain redhat's pgp key. Let's say you download

http://www.redhat.com/about/contact/redhat.asc

and put it in a file named

redhat.asc


Save the key into your personal public keyring with (note $ is the command prompt):

$ gpg --import redhat.asc
$ gpg --list-keys


You can now get rid of redhat.asc:

$ rm -f redhat.asc


OR, you can get a key from a public keyserver. First find the key you need:

$ rpm --checksig xsane-0.61-3.i386.rpm
xsane-0.61-3.i386.rpm: md5 (GPG) OK (MISSING KEYS: GPG#DB42A60E)


Get the key:

$ gpg --keyserver wwwkeys.pgp.net --recv-keys DB42A60E
$ gpg --list-keys


Now, if a package has been signed by redhat:

$ rpm --checksig xsane-0.61-3.i386.rpm
xsane-0.61-3.i386.rpm: md5 gpg OK

you won't get a complaint about a missing gpg key.

See: http://www.gnupg.org

Regards,

Karl O. Pinc
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rpm -Uvh does not work with header & rpm files in /var/spool/up2date jd_no7 Linux - Software 1 05-17-2004 05:24 PM
preserve configuration files during RPM upgrade (rpm -U) charrua Red Hat 3 03-14-2004 01:18 PM
How do you install tar/gz files, and rpm files? Fear58 Linux - Software 6 02-14-2004 04:35 PM
Difference between src.rpm files and source.rpm files ja_nch Red Hat 2 09-06-2003 06:12 PM
Building RPM files from TAR files parle Linux - Software 3 05-05-2002 11:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration