Linux-yum Server Setup

Source: Internet
Author: User
Tags yum repolist

Yum (full name Yellow dog Updater, Modified) is a shell front end package Manager in Fedora and Redhat and CentOS. Based on RPM package management, the ability to automatically download RPM packages from specified servers and install them automatically handles dependency relationships and installs all dependent packages at once, without the hassle of downloading and installing them over and over again.

Configuring the Yum server on the server

1 Mount | grep ISO 2 umount/dev/cdrom3 mount/dev/cdrom/mnt

Write a yum configuration file

1 vim/etc/yum.repos.d/rhel.repo23[cdrom]4 name=DVD  5 baseurl=file://mnt6 enabled=17 gpgcheck=  0

When configured, you can use the command: Yum repolist Verify that the configuration is successful.

1 Yum repolist        //Display repository configuration 23 yum Clean all       //

After the Yum server is configured, you can install the software through Yum. For example, install the DHCP server under Yum:

1 yum-y Install DHCP   // installation DHCP server, auto answer Yes

command options for Yum servers

1-E//Silent Execution2 3-T//Ignore Errors4     5-r[min]//set the wait time6 7-Y//Auto Answer Yes8 9--skip-broken//Ignore dependency issuesTen  One--nogpgcheck//Ignore GPG validation

Linux-yum Server Setup

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.