当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Thinking about competitive programming: myths and shocking facts
- CSDN bug3: to be added
- iOS14新特性-WidgetKit开发与实践
- jmeter接口测试--带有token的解决方法
- ServiceManagerProxy中mRemote变量指的什么?
- ASP.NET Core框架揭秘[博文汇总
- Call the open source video streaming media platform dawinffc
- LeetCode:二叉树(四)
- Filezilla server配置FTP服务器中的各种问题与解决方法
- C++ STL容器篇
猜你喜欢

分布式文档存储数据库之MongoDB索引管理

On fedlearner, the latest open source federated machine learning platform of byte

Getiservicemanager () source code analysis

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

【技术教程】C#控制台调用FFMPEG推MP4视频文件至流媒体开源服务平台EasyDarwin过程

Swoole v4.5.7 版本发布,新增--enable-swoole-json编译选项

使用call、apply和bind解决js中烦人的this,事件绑定时的this和传参问题

如何更好地理解中间件和洋葱模型

基于FPGA的MCP4725驱动程序

Connection to XXX could not be established. Broker may not be available
随机推荐
用python猜测一个数字是集合里面哪些数字相加求和而来的
The solution of polar experience insensitive verification
[论文阅读笔记] RoSANE, Robust and scalable attributed network embedding for sparse networks
csdn bug1:待加
[elixir! #0073] beam 内置的内存数据库 —— ETS
吴恩达《Machine Learning》精炼笔记 4:神经网络基础 - 知乎
Learning from scratch YoMo series: Opening
使用call、apply和bind解决js中烦人的this,事件绑定时的this和传参问题
Wu Enda's refining notes on machine learning 4: basis of neural network - Zhihu
商品管统——采购需求合并到采购单
delete、truncate、drop 有什么区别,误删数据怎么办
CSDN bug3: to be added
ASP.NET Core框架揭秘[博文汇总-持续更新]
Oschina: my green plants are potatoes, ginger and garlic
世界上最伟大的10个公式,其中一个人尽皆知
为什么要谨慎使用Arrays.asList、ArrayList的subList?
What does the mremote variable in servicemanagerproxy refer to?
Thinking about competitive programming: myths and shocking facts
【LeetCode】 93 平衡二叉树
OSChina 周二乱弹 —— 我养的绿植分别为土豆,生姜,蒜