当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- File初相识
- 《Python Cookbook 3rd》笔记(2.4):字符串匹配和搜索
- Graph undirected graph
- CCR coin robot: novel coronavirus pneumonia has accelerated the interest of regulators in CBDC.
- 设计 API 时通过 POST 获取数据需要注意哪些问题
- express -- 学习笔记(慕课)
- CSDN bug11: to be added
- Commodity management - merge purchase demand into purchase order
- LeetCode 5561. 获取生成数组中的最大值
- 用python猜测一个数字是集合里面哪些数字相加求和而来的
猜你喜欢

我手撸了一个划线翻译工具!

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

想花钱速学互联网行业,大概花两三个月的时间,出来好找工作吗

csdn bug4:待加

奸商加价销售mate40,小米可望在高端手机市场夺取更多市场

Key layout of the Central Government: in the next five years, self-reliance and self-improvement of science and technology will be the priority, and these industries will be named

CentOS7本地源yum配置

世界上最伟大的10个公式,其中一个人尽皆知

Overview of the most complete anomaly detection algorithm in history
![[leetcode] 93 balanced binary tree](/img/3b/00bc81122d330c9d59909994e61027.jpg)
[leetcode] 93 balanced binary tree
随机推荐
GNU assembly language uses inline assembly to extend ASM
The high pass snapdragon 875 has won the title of Android processor, but the external 5g baseband has become its disadvantage
Hystrix 如何解决 ThreadLocal 信息丢失
Connection to XXX could not be established. Broker may not be available
Problems and solutions in configuring FTP server with FileZilla server
仅发送options请求,没有发送post解决方案
奸商加价销售mate40,小米可望在高端手机市场夺取更多市场
Getiservicemanager () source code analysis
C++ 标准库头文件
What can I do if I can't register didi? How to deal with it?
Harbor项目高手问答及赠书活动火热进行中
MultiBank Group宣布创纪录的财务业绩,2020年前三季度毛利达到9,400万美元
JMeter interface test -- a solution with token
CSDN bug3: to be added
csdn bug9:待加
高通骁龙875夺安卓处理器桂冠,但外挂5G基带成为它的弊病
I have a crossed translation tool in my hand!
使用call、apply和bind解决js中烦人的this,事件绑定时的this和传参问题
Bartender2021 realizes secure remote label printing, new year-end release
想花钱速学互联网行业,大概花两三个月的时间,出来好找工作吗