It took an afternoon to build your first yum server and client. There are many tutorials for setting up yum servers on the Internet, most of which are the tutorials named "setting up YUM servers (required for RHCI) in RedHat Enterprise 5.0. I also set up my first yum server and client by setting up an afternoon for reference. There are many tutorials for setting up yum servers on the Internet, most of which are the tutorials named "setting up YUM servers (required for RHCI) in RedHat Enterprise 5.0. I also built my own yum server by referring to this tutorial. Preparations before starting the experiment are as follows: YUM Client to ensure that the following software packages are installed: yum-3.0.1-5.el5.rpmyum-metadata-parser-1.0-8.fc6YUM Servr to ensure that the following software packages are installed: yum-3.0.1-5.el5.rpmyum-metadata-parser-1.0-8.fc6yum-rhn-plugin-0.4.3-1.el5yum-updatesd-3.0.1-5.el5createrepo-0.4.4-2.fc6.noarch.rpmyum-arch-2.2.2-2.fc7.noarch.rpm
START experiment: 1: configure the server: 1: We will use the content in the linux installation image, so you can set the 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. :
2: configure the client: modify the rhel-debuginfo.repo under the/etc/yum. repos. d/Directory (it is best to save a 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!
This article is from the "Zheng Honghui" blog