当前位置:网站首页>Redhat7.4 configure Yum software warehouse (rhel7.4)
Redhat7.4 configure Yum software warehouse (rhel7.4)
2022-07-05 18:46:00 【InfoQ】
yum Software warehouse
Experiment preparation ( The following experiments are VMware In the middle of )
1、 Mount the CD image
2、 see
[[email protected] ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 20G 0 disk
├─sda1 8:1 0 1G 0 part /boot
└─sda2 8:2 0 19G 0 part
├─rhel-root 253:0 0 17G 0 lvm /
└─rhel-swap 253:1 0 2G 0 lvm [SWAP]
sdb 8:16 0 10G 0 disk
sr0 11:0 1 3.8G 0 rom /run/media/root/RHEL-7.4 Server.x86_64 --- This is the image of the attached store CD
3、 Create a mount point and write to the configuration file
[[email protected] ~]# mkdir /media/cdrom
[[email protected] ~]# vim /etc/fstab
/dev/cdrom /media/cdrom iso9660 defaults 0 0 --- Add this line
[[email protected] ~]# mount -a
mount: /dev/sr0 is write-protected, mounting read-only
4、 Write yum Configuration file of warehouse
[[email protected] ~]# cd /etc/yum.repos.d/
[[email protected] yum.repos.d]# vim rhel7.repo
[rhel] ---Yum Software warehouse unique identifier , Avoid conflicts with other warehouses
name=rhel ---Yum Description of the name of the software warehouse
baseurl=file:///media/cdrom --- The ways provided include FTP(ftp://..)、HTTP(http://..)、 Local (file:///..)
enable=1 --- Set whether this source is available ;1 Available for use ,0 To disable .
gpgcheck=0 --- Set whether this source verifies files ;1 For verification ,0 For not checking
5、 eliminate yum Warehouse cache
[[email protected] yum.repos.d]# yum clean all
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Cleaning repos: rhel
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
6、 Generate cache
[[email protected] yum.repos.d]# yum makecache
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
rhel | 4.1 kB 00:00
(1/5): rhel/group_gz | 137 kB 00:00
(2/5): rhel/filelists_db | 3.4 MB 00:00
(3/5): rhel/primary_db | 4.0 MB 00:00
(4/5): rhel/other_db | 1.5 MB 00:00
(5/5): rhel/productid | 1.6 kB 00:00
Metadata Cache Created
7、 Test whether the installation is successful
[[email protected] ~]# yum install tree -y
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package tree.x86_64 0:1.6.0-10.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
tree x86_64 1.6.0-10.el7 rhel 46 k
Transaction Summary
================================================================================
Install 1 Package
Total download size: 46 k
Installed size: 87 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : tree-1.6.0-10.el7.x86_64 1/1
Verifying : tree-1.6.0-10.el7.x86_64 1/1
Installed:
tree.x86_64 0:1.6.0-10.el7
Complete!
[[email protected] ~]#
边栏推荐
- 企业级数据安全,天翼云是这样理解的
- 一文读懂简单查询代价估算
- 2022年5月腾讯云开发者社区视频月度榜单公布
- SAP 特征 特性 说明
- Find in MySQL_ in_ Detailed explanation of set() function usage
- 尚硅谷尚优选项目教程发布
- The 11th China cloud computing standards and Applications Conference | cloud computing national standards and white paper series release, and Huayun data fully participated in the preparation
- What are the cache interfaces of nailing open platform applet API?
- RedHat7.4配置yum软件仓库(RHEL7.4)
- websocket 工具的使用
猜你喜欢
The 11th China cloud computing standards and Applications Conference | China cloud data has become the deputy leader unit of the cloud migration special group of the cloud computing standards working
一朵云开启智慧交通新未来
达梦数据库udf实现
Word查找红色文字 Word查找颜色字体 Word查找突出格式文本
MySQL数据库索引教程(超详细)
A2L file parsing based on CAN bus (3)
AI金榜题名时,MLPerf榜单的份量究竟有多重?
The worse the AI performance, the higher the bonus? Doctor of New York University offered a reward for the task of making the big model perform poorly
IDEA配置npm启动
RedHat7.4配置yum软件仓库(RHEL7.4)
随机推荐
Trust counts the number of occurrences of words in the file
Isprs2022/ cloud detection: cloud detection with boundary nets
技术分享 | 接口测试价值与体系
Cronab log: how to record the output of my cron script
AI Open2022|基于异质信息网络的推荐系统综述:概念,方法,应用与资源
Emqx 5.0 officially released: a single cluster supports 100million mqtt connections
sample_rate(采样率),sample(采样),duration(时长)是什么关系
RPC protocol details
How to write good code defensive programming
技术分享 | 常见接口协议解析
企业级数据安全,天翼云是这样理解的
《ClickHouse原理解析与应用实践》读书笔记(5)
How to choose the most formal and safe external futures platform?
The 2022 China Xinchuang Ecological Market Research and model selection evaluation report released that Huayun data was selected as the mainstream manufacturer of Xinchuang IT infrastructure!
U-Net: Convolutional Networks for Biomedical Images Segmentation
[QNX hypervisor 2.2 user manual]6.3.2 configuring VM
RedHat7.4配置yum软件仓库(RHEL7.4)
Use of websocket tool
Vulnhub's darkhole_ two
Take a look at semaphore, the current limiting tool provided by JUC