Redhat 5 build ftp-based yum server, redhatyum

Source: Internet
Author: User

Redhat 5 build ftp-based yum server, redhatyum
YUM is Yellow dog Updater, short for Modified. It is a plan initiated by Duke University to solve the problem of RPM dependency, it is convenient for users to install and upgrade software. It is particularly noted that YUM is only used to solve RPM dependency problems, rather than other software installation modes. In the redhat system, yum cannot be used without authorization. Here we will introduce a method to build a local yum server using the redhat CD.

System Environment: Red Hat 5.9
Server IP: 192.168.100.211
Client IP: 192.168.100.212

1. Yum server Configuration:
1: mount the RHEL5 System Disk
# Mount/dev/cdrom/mnt

2: Install related software packages
# Cd/mnt/Server
# Rpm-ivh yum-3.2.22-40.el5.noarch.rpm
# Rpm-ivh yum-metadata-parser-1.1.2-4.el5.x86_64.rpm
# Rpm-ivh yum-rhn-plugin-0.5.4-29.el5.noarch.rpm
# Rpm-ivh yum-updatesd-0.9-5.el5.noarch.rpm
# Rpm-ivh createrepo-0.4.11-3.el5.noarch.rpm

3: Build an FTP-based YUM Server
# Cp-R/mnt/Server/var/ftp/pub/
# Createrepo/var/ftp/pub/Server

4: run the vsftp service (and set to start upon startup)
# Service vsftpd restart
# Chkconfig vsftpd on

Now the Yum service has been set up. You only need to configure the following on the client.

Ii. Yum client Configuration:
1: Install related software packages
# Rpm-ivh yum-3.2.22-40.el5.noarch.rpm
# Rpm-ivh yum-metadata-parser-1.1.2-4.el5.x86_64.rpm

2. Delete the default configuration file and create a new configuration file.
# Cd/etc/yum. repos. d/
# Rm-rf *
# Vi/etc/yum. repos. d/Server. repo
[Server]
Name = Red Hat
Baseurl = ftp: // 192.168.100.211/pub/Server/
Enabled = 1
Gpgcheck = 0

3: Test download

# Yum-y install php


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.