Build yum server and client on RedHat

Source: Internet
Author: User
It took an afternoon to build your first yum server and client in RedHat. Preparations before you start building the yum experiment are as follows: YUMClient to ensure that the following software packages are installed: yum-3.0.1-5.el5.rpmyum-metadata-parser-1.0-8.fc6YUMServr to ensure that the following software packages are installed: yum-3.0.1-5.el5.rpmyum-metadata-parser-1.0-8.fc6yu

It took an afternoon to build your first yum server and client in RedHat.

Preparations for setting up the yum experiment are as follows:
YUM Client must ensure that the following software packages are installed:
Yum-3.0.1-5.el5.rpm
Yum-metadata-parser-1.0-8.fc6
Install the following software package for YUM Servr:
Yum-3.0.1-5.el5.rpm
Yum-metadata-parser-1.0-8.fc6
Yum-rhn-plugin-0.4.3-1.el5
Yum-updatesd-3.0.1-5.el5
Createrepo-0.4.4-2.fc6.noarch.rpm
Yum-arch-2.2.2-2.fc7.noarch.rpm [B]
 
Start the experiment:

1. Configure the server:

1: We need to use the content in the linux installation image, so we can set parameters on the vmwarevm first.

2: Create a folder to store the rpm package. In this experiment, I created a directory/vmware/rhel5/Server.

3: cp the rpm content under the Server package in the linux installation image to the directory above

4: createrepo/vmware/rhel5/Server

5: Configure/etc/yum. conf .. For example:

6: service vsftpd restart. :

Ii. Configure the client:

Modify the rhel-debuginfo.repo under the/etc/yum. repos. d/directory (it is best to save one copy before modification)

Here, baseurl is the place where I store the rpm package, that is, the yum source address. Enabled indicates whether to start the repository, 1 indicates to start, and 0 indicates to disable.

Since then, our yum server and client have been ready!

For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10

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.