当前位置:网站首页>Centos7 local source Yum configuration
Centos7 local source Yum configuration
2020-11-10 10:41:00 【osc_mxz6aybo】
CentOS7 Local sources yum To configure
- Use software VMware Workstation 16pro
- System CentOS 7
- Image file CentOS-7-x86_64-DVD-1511.iso
CentOS After the system is installed on the virtual machine or the real machine , There are two ways to install software , Except for local sources yum install , And network installation , But sometimes there are some errors when using network installation , Therefore, it is recommended to set the local source configuration first .
After opening the virtual machine, connect to download or install the image files of the system in the settings
Note that when the image is successfully connected to the virtual machine , The lower right corner of the virtual machine shows
open CentOS The terminal input of
- notes : After opening the terminal, it is recommended to switch to root In user mode
su root
df -h # View mounted devices

- /dev/sr0 It's the device name of the image hinder run/media/root/… Is the default mount path of the image We need to reset the mount path
- First in mnt Create under directory cdrom, Then mount the image to cdrom Next
mount /dev/sr0 /mnt/cdrom/
- After the mount is successful, it will be shown as shown in the figure

- Set mount and enter
cd /etc/yum.repos.d/Under the table of contents
vi CentOS-Media.repo
Edit the file, copy the contents and exit
Use rm -f * Delete all files

And then create your own .reop The documents are as follows

# The document code is as follows
[a] # Two places here a Is the name of the created file
name=a
baseurl=file:///mnt/cdrom/ # Here is the mounted Directory
gpgcheck=0 # Is not enabled
enabled=1 # verification gpg Don't open
# Then save to exit
Because it's reset yum The following commands are used to configure all of them
yum clean alll # Clear all yum To configure
yum makecache # establish yum New cache
Success will be shown as follows

Finally, query the installed software package yum list
Here we are CentOS Local sources yum Configuration complete
版权声明
本文为[osc_mxz6aybo]所创,转载请带上原文链接,感谢
边栏推荐
- Leetcode 1-sum of two numbers
- leetcode1-两数之和
- 商品管统——采购需求合并到采购单
- 安卓快速关机APP
- Taulia launches international payment terms database
- Use call, apply and bind to solve the annoying this in JS, this in event binding and parameter passing
- csdn bug4:待加
- csdn bug7:待加
- 我手撸了一个划线翻译工具!
- Mongodb index management of distributed document storage database
猜你喜欢

Wu Enda's refining notes on machine learning 4: basis of neural network - Zhihu

gnu汇编语言使用内联汇编 扩展asm

微服务授权应该怎么做?

CSDN bug11: to be added

2020-11-07

Farfetch、阿里巴巴集团和历峰集团结成全球合作伙伴关系,将加速奢侈品行业数字化进程

GNU assembly language uses inline assembly to extend ASM

I have a crossed translation tool in my hand!

The solution of polar experience insensitive verification

Call the open source video streaming media platform dawinffc
随机推荐
仅发送options请求,没有发送post解决方案
Use call, apply and bind to solve the annoying this in JS, this in event binding and parameter passing
csdn bug3:待加
ElasticSearch 集群基本概念及常用操作汇总(建议收藏)
[论文阅读笔记] RoSANE, Robust and scalable attributed network embedding for sparse networks
推动中国制造升级,汽车装配车间生产流水线 3D 可视化
分布式文档存储数据库之MongoDB索引管理
B. protocal has 7000eth assets in one week!
《Python Cookbook 3rd》笔记(2.4):字符串匹配和搜索
C++ STL容器篇
自定义注解!绝对是程序员装逼的利器!!
想花钱速学互联网行业,大概花两三个月的时间,出来好找工作吗
用python猜测一个数字是集合里面哪些数字相加求和而来的
selenium webdriver使用click一直失效问题的几种解决方法
高通骁龙875夺安卓处理器桂冠,但外挂5G基带成为它的弊病
OSChina 周二乱弹 —— 我养的绿植分别为土豆,生姜,蒜
Filezilla server配置FTP服务器中的各种问题与解决方法
CSDN BUG1: to be added
CSDN bug4: to be added
csdn bug11:待加