当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 走进C# abstract,了解抽象类与接口的异同
- CSDN bug8: to be added
- Harbor项目高手问答及赠书活动火热进行中
- 【iOS】苹果登录Sign in with Apple
- Solution of MAC terminal iterm2 supporting RZ and sz
- leetcode1-两数之和
- csdn bug11:待加
- 为什么要谨慎使用Arrays.asList、ArrayList的subList?
- 【操作教程 】国标GB28181协议安防视频平台EasyGBS订阅功能介绍及开启步骤
- [论文阅读笔记] Large-Scale Heterogeneous Feature Embedding
猜你喜欢

csdn bug7:待加

selenium webdriver使用click一直失效问题的几种解决方法

Filezilla server配置FTP服务器中的各种问题与解决方法

MultiBank Group宣布创纪录的财务业绩,2020年前三季度毛利达到9,400万美元

微服务授权应该怎么做?

【技术教程】Visual Studio 2017自建WebRTC中peerconnection_client程序报LNK2019 无法解析的外部符号错误

【LeetCode】 93 平衡二叉树

csdn bug4:待加

LeetCode:数组(一)

【操作教程 】国标GB28181协议安防视频平台EasyGBS订阅功能介绍及开启步骤
随机推荐
腾讯云TBase在分布式HTAP领域的探索与实践
ServiceManagerProxy中mRemote变量指的什么?
LeetCode 5561. 获取生成数组中的最大值
Coding style: SSM environment in MVC mode, code hierarchical management
【goang】sync.WaitGroup详解
从大专生到蚂蚁金服CTO,他写下“支付宝”第一行代码:逆风的方向,更适合飞翔!...
express -- 学习笔记(慕课)
Getiservicemanager () source code analysis
安卓快速关机APP
CSDN bug7: to be added
寻找性能更优秀的不可变小字典
分布式文档存储数据库之MongoDB索引管理
《Python Cookbook 3rd》笔记(2.4):字符串匹配和搜索
Factory approach model
专业之旅——GitHub 热点速览 Vol.45
监控系统选型,这篇不可不读!
The unscrupulous merchants increase the price of mate40, and Xiaomi is expected to capture more market in the high-end mobile phone market
File初相识
Android quick shutdown app
CSDN BUG1: to be added