zoukankan      html  css  js  c++  java
  • yum 常用命令

    yum 常用命令

    查看yum安装源

    [root@localhost ~]# yum repolist all
    Loaded plugins: fastestmirror, priorities
    Repository base is listed more than once in the configuration
    Repository updates is listed more than once in the configuration
    Repository extras is listed more than once in the configuration
    Repository centosplus is listed more than once in the configuration
    Loading mirror speeds from cached hostfile
     * base: mirrors.aliyun.com
     * epel: mirrors.tuna.tsinghua.edu.cn
     * extras: mirrors.cqu.edu.cn
     * updates: mirrors.aliyun.com
    repo id                       repo name                                                    status
    C7.0.1406-base/x86_64         CentOS-7.0.1406 - Base                                       disabled
    C7.0.1406-centosplus/x86_64   CentOS-7.0.1406 - CentOSPlus                                 disabled
    C7.0.1406-extras/x86_64       CentOS-7.0.1406 - Extras                                     disabled
    

    安装软件

    yum install packagename #安装指定包
    yun groupinstall groupname #安装程序组
    

    更新和升级

    yum update packagename #更新指定包
    yum check-update #检查可更新的安装包
    yum upgrade packagename #升级指定包
    yum groupupdate groupname #升级指定程序组
    

    查找和显示包信息

    yum info packagename #显示安装包信息
    yum list #显示已安装包和可安装包
    yum list  packagename #显示指定包安装情况
    yum list groupinfo groupname #显示程序组groupname
    yum search string #根据关键词查找包
    

    删除

    yum remove/erase packagename #卸载程序包
    yum groupremove groupname #卸载程序组
    yum deplist packagename #查看包package的依赖情况
    

    清理本地缓存

    yum clean all 
    
    #清楚插件缓存
    yum clean plugins
    

    构建缓存

    yum makecache
    
  • 相关阅读:
    【转】算法的时间复杂度
    FFT 物理意义(转)
    【转】FIR学习1
    【转】DFT DTFT DFS FFT的关系
    【转】TCL中的数组
    【转】setup time和hold time的周期问题(slack)
    【转】TCL语法简介
    【转】亚稳态分析
    ubuntu下Samba服务器搭建
    第一次生成uImage出现的问题解决
  • 原文地址:https://www.cnblogs.com/dowhile/p/yum.html
Copyright © 2011-2022 走看看