Steamed Stuffed Bun 1, webserver, rpm put in the directory/tmp/a,/tmp/a ING as the url is
Steamed stuffed bun
1. put the web server and rpm in the/tmp/a directory, and map/tmp/a to yourserver.com/xxx as the url.
2. install the createrepo tool yum install createrepo
3. create xml, createrepo/tmp/
4. create the signature key yum install rng-utils gpg-y; rngd-r/dev/urandom-o/dev/random-f-t 1
Another terminal, gpg? Gen-key generates a key pair by default. The name is XXX.
Gpg? Export-a 'xxx'> XXX-GPG-KEY
Vi ~ /. Rpmmacros
Add the following two lines for adding a signature during program compilation:
% _ Signature gpg
% _ Gpg_name XXX
Add a signature to the RPM
Rpm? Addsign *. rpm
5. write the configuration to the/etc/yum. repo. d Directory and create the aa. repo file. the content is as follows:
[Xxx]
Name = xxx
Base url = http://youserver.com/xxx
Enabled = 1
Gpgcheck = 1
Gpgkey = http://baoz.net/tmp/XXX-GPG-KEY
Some gpg references
Html> http://www.imx365.net/blog/weblog-20573-1.html