RPM installation package installed --yum

RPM package installation

yum install

  1. yum source file parsing

    • yum /etc/yum.repos.d/ source files are stored in the directory, the file extension must be ".repo", that is to say yum configuration as long as the source file name extension will take effect .repo

  2. Build a CD yum source

    • First mount the CD

    • Secondly modify several other extensions yum source
      • yum default execution is CentOS-base file, to get the disc yum source implementation need to CentOS-media execution
    • The path of the optical disc into the optical disc mount point site path, enabled = 1

  3. yum query

    • Is there a package yum source server query

      • Command: [root @ localhost ~] #yum list package name
      • Note: here is yum on the server, rather than inside the system

    • Yum search on keywords related to the source server and all packages

      • [Root @ localhost ~] #yum search keywords
      • For example: [root @ localhost ~] #yum search ifconfig # 7 version need to ifconfig

  4. yum install

    • [root@localhost ~]#yum -y install 包名
    • Options
      • install: Installation
      • -y: automatic yes

    1570464617702

  5. yum upgrade

    • [root@localhost ~]#yum -y update 包名
    • [Root @ localhost ~] #yum -y update # upgrade this machine all packages
  6. Uninstall

    • [Root @ localhost ~] #yum remove the package name # Uninstall the specified package name
    • Note: Unless uninstall the software package does not depend on the system to determine the impact, do not execute yum uninstall, because most likely while unloading packages uninstall dependent packages are also important system files may cause system crashes
  7. yum group management command

    • Queries can install the software group

      • [Root @ localhost ~] #yum grouplist # list all available software group directory

    • Queries included in the software group software

      • [Root @ localhost ~] #yum groupinfo software # Group name lists all available software group directory

    • 安装软件组

      • [root@localhost ~]#yum groupinstall 软件组名

    • 卸载

      • [root@localhost ~]#yum groupremove 软件组名

Guess you like

Origin www.cnblogs.com/SSPOFA/p/11635337.html