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
    
  • 相关阅读:
    6.2笔记-DQL语句查询数据库
    6.1课堂笔记—DML(数据操作语言),DQL查询语句
    5月31日上课笔记-Mysql简介
    5月25日-js操作DOM遍历子节点
    5月24日上课笔记-js操作DOM
    5月23日笔记-js绑定事件、解绑事件、复合事件
    嗯,很好,就这样。
    Spring AOP 编程
    Spring IOC 工厂
    Spring 与 Mybatis 的事务管理
  • 原文地址:https://www.cnblogs.com/dowhile/p/yum.html
Copyright © 2011-2022 走看看