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