简易配置yum源

简易配置yumvim

centos6.8centos

镜像选择DVD1缓存

#mkdir /testide

# mount /dev/sr0 /test  挂载url

# cd /testspa

# ls     查看是否有repodate文件 是 yum 索引文件索引

# cd  /etc/yum.repos.dget

# rm -rf ./*(删除yum.repos.d下的配置文件,防止都是enabled=1 )it

# vim yum.repo (新建yum.repo,并配置文件)class

    里面须要写入

    [base]

    name =yum

    baseurl=file:///test 

    enabled=1

    gpgcheck=0

:wq  保存退出

# yum clean all 

# yum makecache 创建一个缓存

则yum就配置好啦!!!

# yum install screen

经过which screen 断定有没有安装好!!!

相关文章
相关标签/搜索