当前位置:网站首页>Quickly learn to configure local and network sources of yum, and learn to use yum
Quickly learn to configure local and network sources of yum, and learn to use yum
2022-07-26 16:46:00 【I'm Zha Zha Hui】
List of articles
yum Local source configuration
1、 First mount the local CD to the local directory
[[email protected] ~]# mkdir /media/cdrom
[[email protected] ~]# mount /dev/cdrom /media/cdrom
2、 change /etc/yum.repos.d/rhe18.repo
[[email protected] ~]# vim /etc/yum.repos.d/rhel8.repo
#[ repositories ]: The beginning of software warehouse configuration
#name= Specify a name
#baseurl= The configuration is the location of the software warehouse : Packages Top level directory of
Local configuration :file://
The network configuration : http://
https://
#enabled=0 perhaps 1, be equal to 0 On behalf of not using , Default is equal to 1
#gpgcheck=0 perhaps 1, be equal to 0 It doesn't check , be equal to 1 Is to be verified
#gpgkey= Provided key To verify ( When gpgcheck=1 When it comes into effect )
[BaseOS]
name=BaseOS
baseurl=file:///mnt/BaseOS
gpgcheck=0
[AppStream]
name=AppStream
baseurl=file:///mnt/AppStream
gpgcheck=0
[[email protected] ~]# yum clean all
[[email protected] ~]# yum makecache
yum Network source configuration
- Alibaba cloud network source ,aliyun The mirror site of is https://mirrors.aliyun.com/
[[email protected] ~]# cat /etc/redhat-release
Rocky Linux release 8.5 (Green Obsidian)
notes : Check your release information here first , Select the appropriate warehouse .
# Warehouse files can be written by yourself or from aliyun Web site to download
[[email protected] ~]# cat /etc/yum.repos.d/aliyun.repo
[appstream]
name=appstream
baseurl=https://mirrors.aliyun.com/rockylinux/8.5/AppStream/x86_64/os/
gpgcheck=0
#gpgcheck=1 # If gpgcheck by 1, You need to write the path of the secret key file
#gpgkey=https://mirrors.aliyun.com/rockylinux/RPM-GPG-KEY-rockyofficial
[baseos]
name=baseos
baseurl=https://mirrors.aliyun.com/rockylinux/8.5/BaseOS/x86_64/os/
gpgcheck=0
#gpgcheck=1
#gpgkey=https://mirrors.aliyun.com/rockylinux/RPM-GPG-KEY-rockyofficial
Tsinghua source image site is https://mirrors.tuna.tsinghua.edu.cn/
Mirror site of University of science and technology of China https://mirrors.ustc.edu.cn/
Netease open source image station http://mirrors.163.com/
install httpd Software
yum install httpd -y
see vim Which package does the command belong to
yum provides vim
yum uninstall httpd
yum reinstall httpd
Clean cache
yum clean all
Recreate cache
yum makcahre
install postgresql Version in the module 13
yum moudle install postgresql:13 -y
边栏推荐
- Response object - response character data
- [arm learning (9) ARM compiler understanding learning (armcc/armclang)]
- Vlang's way of beating drums
- Vs2017 opens the project and prompts the solution of migration
- 正则表达式
- Set up typera drawing bed
- MVC和ECS两种设计架构的初浅理解
- kubernetes之ConfigMap
- PXE efficient batch network installation
- Use verdaccio to build your own NPM private library
猜你喜欢

营销指南 | 几种常见的微博营销打法

Marxan model, reserve optimization and protection vacancy selection technology, application in invest ecosystem

PXE efficient batch network installation

"Green is better than blue". Why is TPC the last white lotus to earn interest with money

Operating system migration practice: deploying MySQL database on openeuler

Re7: reading papers fla/mlac learning to predict charges for critical cases with legal basis

2022 software testing skills postman+newman+jenkins continuous integration practical tutorial

NUC 11 build esxi 7.0.3f install network card driver-v2 (upgraded version in July 2022)

What is a distributed timed task framework?

Nacos win10 安装配置教程
随机推荐
工作流引擎在vivo营销自动化中的应用实践
What does it mean to lock financial products regularly? Can financial products be redeemed during the lock-in period?
Difference between C event and delegation
Sharing of 40 completed projects of high-quality information management specialty [source code + Thesis] (VI)
TDengine 落地协鑫能科,数百亿数据压缩至 600GB
DTS搭载全新自研内核,突破两地三中心架构的关键技术|腾讯云数据库
kubernetes之探针
匿名方法和lambda表达式使用的区别
The difference between oncreate and onrestoreinstancestate recovery data of activity
srec_cat 常用参数的使用
Tao and art of R & D Efficiency - Tao chapter
Comprehensively design an oppe homepage -- layout and initialization
Win11 auto delete file setting method
C#事件和委托的区别
量化交易之数字货币篇 - 通过时间戳与方向来合并逐笔成交数据(大单合并)
Digital intelligence transformation, management first | jnpf strives to build a "full life cycle management" platform
How to use C language nested linked list to realize student achievement management system
2022牛客暑期多校训练营1(ACDGIJ)
Set up typera drawing bed
Trends in software testing tools in 2021