当前位置:网站首页>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] ~]#
边栏推荐
- LeetCode 6109. 知道秘密的人数
- 跨境支付平台 XTransfer 的低代码实践:如何与其他中台融合是核心
- Introduction to the development function of Hanlin Youshang system of Hansheng Youpin app
- AI Open2022|基于异质信息网络的推荐系统综述:概念,方法,应用与资源
- 2022最新中高级Android面试题目,【原理+实战+视频+源码】
- The main thread anr exception is caused by too many binder development threads
- How to automatically install pythn third-party libraries
- Is it safe to open an account, register and dig money? Is there any risk? Is it reliable?
- 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!
- SAP 特征 特性 说明
猜你喜欢

Idea configuring NPM startup

2022 Alibaba Android advanced interview questions sharing, 2022 Alibaba hand Taobao Android interview questions

Rse2020/ cloud detection: accurate cloud detection of high-resolution remote sensing images based on weak supervision and deep learning

IDEA配置npm启动

2022年阿里Android高级面试题分享,2022阿里手淘Android面试题目

爬虫01-爬虫基本原理讲解

Summary of six points of MySQL optimization

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

蚂蚁集团开源可信隐私计算框架「隐语」:开放、通用

Use JMeter to record scripts and debug
随机推荐
Is it complicated to open an account? Is online account opening safe?
Isprs2022/ cloud detection: cloud detection with boundary nets
Is it safe for golden sun to open an account? Can I open an account free of 5 in case?
企业数字化转型之路,从这里开始
LeetCode 6111. Spiral matrix IV
FCN: Fully Convolutional Networks for Semantic Segmentation
ROS installation error sudo: rosdep: command not found
ROS安装报错 sudo: rosdep:找不到命令
IDEA配置npm启动
Various pits of vs2017 QT
China law network joins hands to observe the cloud, and the online system is a full link observable platform
Use QT to traverse JSON documents and search sub objects
输油管的布置数学建模matlab,输油管布置的数学模型
What are the cache interfaces of nailing open platform applet API?
AI Open2022|基于异质信息网络的推荐系统综述:概念,方法,应用与资源
U-Net: Convolutional Networks for Biomedical Images Segmentation
紧固件行业供应商绩效考核繁琐?选对工具才能轻松逆袭!
案例分享|金融业数据运营运维一体化建设
Ant group open source trusted privacy computing framework "argot": open and universal
鱼和熊掌可以兼得!天翼云弹性裸金属一招鲜!