首页 > 编程语言 > 详细

Python学习之路——Linux基础之yum

时间:2018-11-01 19:37:59      阅读:170      评论:0      收藏:0      [点我收藏+]
yum本地源
  • 修改yum源配置文件 /etc/yum.repo.d/local/repo
    技术分享图片
    技术分享图片
    yum clean all : 清除yum缓存

    网络yum源

  • 修改yum源配置文件 /etc/yum.repo.d/local/repo 为网络yum源
    修改baseurl为网络yum源路径(注意需要存在依赖关系repodata目录的路径下)

    自定义yum源

    1. 安装createrepo
    2. 创建yum源目录 : mkdir /test
    3. 拷贝软件包到/test
    4. createrepo /test :创建依赖性关系 (得先安装createrepo)
    5. 修改/etc/yum.repos.d/local.repos:【baseurl=file:///test】

      yum安装与删除

      yum install <软件包名>
      yum reinstall <软件包名> :重新安装
      yum erase <软件包名>

      yum安装后软件包保留

      修改 /etc/yum.conf 中keepcache=1

Python学习之路——Linux基础之yum

原文:http://blog.51cto.com/14052013/2311865

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!