1. Introduction to package Management
2. RPM Command Management (Redhat Package Manager)
3. Yum Online Installation
3.1 Yum source file
Vi/etc/yum.repos.d/centos-base.repo
3.2 Disc Build Yum source
3.2.1 Mounting Discs
Mkdir/mnt/cdrom # set up mount point
mount/dev/cdrom/mnt/cdrom/# Mounting Discs
3.2.2 The network Yum source is invalidated
cd/etc/yum.repos.d/# Enter the Yum source directory
MV Centos-base.repo Centos-base.repo.bak # Modify the yum source file suffix to invalidate it
3.2.3 Making the disc Yum source effective
Vim Centos-media.repo
[C6-media]
name=centos-$releasever-media
Baseurl=file:///mnt/cdrom
#baseurl =file:///media/centos/
# file:///media/cdrom/
# file:///media/cdrecorder/
Gpgcheck=1
Enabled=1
#enabled =0
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-6
3.2.4 Check to see if it takes effect:Yum list
3.3 Yum Command
3.3.1 Query
[Yum list] # query all available packages list
[yum search keyword] # search All and keyword-related packages on the server
3.3.2 Installation
[yum-y Install package name] #-y: Auto answer yes;-install: Install
Example:yum-y install gcc (first GCC must be installed via source package)
3.3.3 Upgrade (use with caution)
[yum-y update package name] # No package name upgrade all packages and cores
3.3.4 Uninstall (use with caution)
[yum-y Remove package name] # Server Use minimal installation, what software to install what, try not to uninstall
3.3.5 Yum software Group Management commands
[Yum grouplist] # List of all available software groups
Language temporary switch: English:lang=en_us; Chinese:Lang=zh_cn.utf8
[yum groupinstall software group name] # installs the specified software group, the group name can be queried by grouplist
For example:yum groupinstall "Chinese support" # Installs Chinese components
[Yum groupremove software group name] # Uninstall the specified software group
4. Source Package Management
5. Script installation Package
Linux Software Installation Management-CentOS (ii)