当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- What can I do if I can't register didi? How to deal with it?
- 计算机专业的学生要怎样做才能避免成为低级的码农?
- About CentOS start error: the solution of failed to start crash recovery kernel arming
- The unscrupulous merchants increase the price of mate40, and Xiaomi is expected to capture more market in the high-end mobile phone market
- [elixir! #0073] beam 内置的内存数据库 —— ETS
- 腾讯云TBase在分布式HTAP领域的探索与实践
- js 基础算法题(一)
- CSDN BUG1: to be added
- selenium webdriver使用click一直失效问题的几种解决方法
- 小度“破圈”提速,IoT迎来新故事
猜你喜欢
Collection of blockchain theory [31]
奸商加价销售mate40,小米可望在高端手机市场夺取更多市场
[论文阅读笔记] Community-oriented attributed network embedding
Hystrix 如何解决 ThreadLocal 信息丢失
B. protocal has 7000eth assets in one week!
CSDN bug11: to be added
从大专生到蚂蚁金服CTO,他写下“支付宝”第一行代码:逆风的方向,更适合飞翔!...
[C#.NET 拾遗补漏]11:最基础的线程知识
[paper reading notes] network embedding with attribute refinement
Hong Kong listed companies transfer cards to acquire 42.5% equity of chuangxinzhong and plan to speed up the distribution of marketing services
随机推荐
Harbor项目高手问答及赠书活动火热进行中
csdn bug3:待加
[elixir! #0073] beam 内置的内存数据库 —— ETS
LeetCode 5561. 获取生成数组中的最大值
CSDN bug3: to be added
About CentOS start error: the solution of failed to start crash recovery kernel arming
The solution of polar experience insensitive verification
[C#.NET 拾遗补漏]11:最基础的线程知识
getIServiceManager() 源码分析
C + + STL container
csdn bug9:待加
如何更好地理解中间件和洋葱模型
csdn bug4:待加
腾讯云TBase在分布式HTAP领域的探索与实践
Swoole v4.5.7 版本发布,新增--enable-swoole-json编译选项
注册滴滴加不上车怎么办?要怎么处理?
python pip命令的使用
浅谈字节最新开源联邦机器学习平台Fedlearner
.MD语法入门
从零开始学习 YoMo 系列教程:开篇