Linux Software Installation-yum installation

Source: Internet
Author: User

Although the RPM package installation software is convenient and fast, you need an existing installation package to install it. In order to install the software more conveniently, the--yum installation is developed by means of automatic installation of network.

Installation with Yum is a prerequisite for the machine to be able to surf the Internet.

1. Configure the Yum source

    

The configuration file for the Yum source is stored under the/ETC/YUM.REPOS.D directory. Open the configuration file Centos-base.repo, except for the comments as follows:

    

[Base]: container name, must be placed in []

Name: container description, optional

Mirrorlist: Mirror site, can be commented out

Baseurl:yum source server address, the default is the official CentOS Yum source, you can also switch to other faster than the Yum source

Enabled: Whether the container is in effect, not written or written 1 is valid

GPGCHECK:RPM digital certificate, 1 effective, 0 not in effect

Gpgkey: Where to save the digital certificate public key file, do not modify

  The Centos-base.repo file is configured with the location of the network Yum Source, which is in effect by default.

If you configure the CD as a Yum Source:

    1, modify the Centos-base.repo, set the enabled=0, or modify the Centos-base.repo file name.

2, modify the Centos-media.repo file Settings enabled=1.

2. General usage:

    Installation:

Yum–y Install software name

   Upgrade

Yum–y Update Software Name

      If using the upgrade command without the software name will upgrade the entire Linux system, it is dangerous, may cause Linux can not log in, so the upgrade command must add the software name

   Unloading

Yum-y Remove software Name

Using Yum offload will also uninstall the software dependencies, so it may be dangerous to uninstall the System package together, so do not use Yum to uninstall the software

Linux Software Installation-yum installation

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.