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
    
  • 相关阅读:
    JFinal项目eclipse出现the table mapping of model: com.gexin.model.scenic.Scenic not exists or the ActiveRecordPlugin not start.
    mysql图形化工具获取表的源码
    数据库中字段是什么意思?
    myeclipse出现Failed to load JavaHL Library.
    1002.查找常用字符
    JS中的AO 和 VO 闭包
    制作icon图标
    babel
    递归时间复杂度
    js函数的柯里化和偏函数
  • 原文地址:https://www.cnblogs.com/dowhile/p/yum.html
Copyright © 2011-2022 走看看