Complete yumserver settings in 3 minutes

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.