当前位置:网站首页>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:数组(一)
Bartender2021 realizes secure remote label printing, new year-end release
CSDN bug10: to be added
Graph undirected graph
Problems and solutions in configuring FTP server with FileZilla server
csdn bug11:待加
CentOS7本地源yum配置
csdn bug10:待加
Farfetch、阿里巴巴集团和历峰集团结成全球合作伙伴关系,将加速奢侈品行业数字化进程
Looking for a small immutable dictionary with better performance
随机推荐
不用懂代码,会打字就可以建站?1111 元礼包帮你一站配齐!
Factory approach model
[elixir! 0073] beam built-in memory database ETS
区块链论文集【三十一】
The unscrupulous merchants increase the price of mate40, and Xiaomi is expected to capture more market in the high-end mobile phone market
OSChina 周二乱弹 —— 我养的绿植分别为土豆,生姜,蒜
Hystrix 如何解决 ThreadLocal 信息丢失
Call the open source video streaming media platform dawinffc
【技术教程】Visual Studio 2017自建WebRTC中peerconnection_client程序报LNK2019 无法解析的外部符号错误
I have a crossed translation tool in my hand!
Android quick shutdown app
C + + STL container
[论文阅读笔记] A Multilayered Informative Random Walk for Attributed Social Network Embedding
delete、truncate、drop 有什么区别,误删数据怎么办
分布式文档存储数据库之MongoDB索引管理
从大专生到蚂蚁金服CTO,他写下“支付宝”第一行代码:逆风的方向,更适合飞翔!...
注册滴滴加不上车怎么办?要怎么处理?
GNU assembly language uses inline assembly to extend ASM
C++ 标准库头文件
Enter C abstract to understand the similarities and differences between abstract classes and interfaces