RedHat Linux 5 build ftp-based yum Server

Source: Internet
Author: User

RedHat Linux 5 build ftp-based yum Server

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 Linux 5 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

How to Set DVD as the default yum source in CentOS

RedHat 6.2 modify yum source in Linux use CentOS source for free

Configure the epel yum Source

Redhat local yum source configuration

Description of yum configuration file

Install yum in RedHat 6.1)

YUM installation and cleaning

Build yum local source on CentOS 6.4

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.