/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to Administration/Linux.Soft/rpm/rpm.signature

  • Committer: Suren A. Chilingaryan
  • Date: 2009-04-09 03:21:08 UTC
  • Revision ID: csa@dside.dyndns.org-20090409032108-w4edamdh4adrgdu3
import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
GPG Basic commands
 
2
------------------
 
3
gpg --list-keys
 
4
    pub  1024D/A7CC4679 2003-11-06 Kain the Dragon (DarkSoft) <csa@dside.dyndns.org>
 
5
    sub  1024g/E26E7656 2003-11-06
 
6
gpg --gen-key
 
7
gpg --armor --export [keyid] > key.asc
 
8
    Here as keyid must be used "A7CC4679" (afterslash value in public key)
 
9
 
 
10
RPM Configuration
 
11
-----------------
 
12
~/.rpmmacros file should be created with two following lines:
 
13
    %_signature gpg
 
14
    %_gpg_name A7CC4679
 
15
 
 
16
RPM Basic commands
 
17
------------------
 
18
rpm -q gpg-pubkey
 
19
rpm --import key.asc
 
20
 
 
21
rpm --addsign <something.rpm>
 
22
    Add new sign to rpm (rpm can be signed with several signatures)
 
23
    
 
24
rpm --resign <something.rpm>
 
25
    Change signature on rpm
 
26
    
 
27
rpm --checksig <something.rpm>
 
28
    Verifies signature
 
29
    
 
30
 
 
31
DrakX
 
32
-----
 
33
In Mandrake/base/key? are kept keys coresponded RPM disks signed with. 
 
34
You can't mix in RPMS/* rpms signed with different keys. Best solution is create new distribution 
 
35
key and add new signature to all packets. And place this key under base/ directory.
 
36
 
 
37
URPMI
 
38
-----
 
39
In /etc/urpmi/urpmi.cfg there are stored keyids for every RPM disk. If you resign rpms on this
 
40
disk you should change it.