Linux Software Installation Management-CentOS (ii)

Source: Internet
Author: User
Tags gpg

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)

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.