next up previous contents
Next: SELinux Up: YUM 線上升級機制 Previous: yum查詢功能   Contents

yum安裝、升級與移除

  1. 安裝/升級選項
    [root@www ~]# yum command [packages]
    command:
      install  :安裝
      reinstall:重新安裝
      update   :升級,若要整個系統都升級,後不接套件
      remove   :移除
    
  2. 安裝
    [root@dywH ~]# yum install cjkuni-ukai-fonts
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package cjkuni-ukai-fonts.noarch 0:0.2.20080216.1-34.el6 set to be updated
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ================================================================================
     Package              Arch      Version                   Repository   Size
    ================================================================================
    Installing:
     cjkuni-ukai-fonts    noarch    0.2.20080216.1-34.el6     dywang       9.4 M
    
    Transaction Summary
    ================================================================================
    Install       1 Package(s)
    Upgrade       0 Package(s)
    
    Total download size: 9.4 M
    Installed size: 17 M
    Is this ok [y/N]: y
    Downloading Packages:
    cjkuni-ukai-fonts-0.2.20080216.1-34.el6.noarch.rpm                         | 9.4 MB     00:41     
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing     : cjkuni-ukai-fonts-0.2.20080216.1-34.el6.noarch                             1/1 
    
    Installed:
      cjkuni-ukai-fonts.noarch 0:0.2.20080216.1-34.el6                                                
    
    Complete!
    
  3. 移除功能:yum [remove] 軟體
    [root@dywH ~]# yum remove cjkuni-ukai-fonts
    Resolving Dependencies
    --> Running transaction check
    ---> Package cjkuni-ukai-fonts.noarch 0:0.2.20080216.1-34.el6 set to be erased
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ============================================================================
     Package              Arch    Version                 Repository   Size
    ============================================================================
    Removing:
     cjkuni-ukai-fonts    noarch  0.2.20080216.1-34.el6   @dywang      17 M
    
    Transaction Summary
    ============================================================================
    Remove        1 Package(s)
    Reinstall     0 Package(s)
    Downgrade     0 Package(s)
    
    Is this ok [y/N]: y
    Downloading Packages:
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Warning: RPMDB altered outside of yum.
    kernel-firmware-2.6.32-71.29.1.el6.noarch is a duplicate with kernel-firmware-2.6.32-71.el6.noarch
    rhn-check-1.0.0-38.el6.noarch has missing requires of yum-rhn-plugin >= ('0', '0.5.3', '30')
      Erasing        : cjkuni-ukai-fonts-0.2.20080216.1-34.el6.noarch                             1/1 
    
    Removed:
      cjkuni-ukai-fonts.noarch 0:0.2.20080216.1-34.el6                                                
    
    Complete!
    


De-Yu Wang 2018-11-30