当前位置:网站首页>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] ~]#
边栏推荐
- U-Net: Convolutional Networks for Biomedical Images Segmentation
- 中文版Postman?功能真心强大!
- 一朵云开启智慧交通新未来
- How to choose the most formal and safe external futures platform?
- 如何写出好代码 - 防御式编程
- RPC protocol details
- Optimization of middle alignment of loading style of device player in easycvr electronic map
- 鱼和熊掌可以兼得!天翼云弹性裸金属一招鲜!
- Record eval() and no in pytoch_ grad()
- 瞅一瞅JUC提供的限流工具Semaphore
猜你喜欢

websocket 工具的使用

Oracle日期格式转换 to_date,to_char,to_timetamp 相互转换

FCN: Fully Convolutional Networks for Semantic Segmentation

Copy the linked list with random pointer in the "Li Kou brush question plan"

5. Data access - entityframework integration

Share: ZTE Yuanhang 30 Pro root unlock BL magick ZTE 7532n 8040n 9041n brush mask original brush package root method Download

Various pits of vs2017 QT

The main thread anr exception is caused by too many binder development threads

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

How much does the mlperf list weigh when AI is named?
随机推荐
鱼和熊掌可以兼得!天翼云弹性裸金属一招鲜!
Powerful tool for collection processing
LeetCode 6109. Number of people who know the secret
Use of websocket tool
Exemple Quelle est la relation entre le taux d'échantillonnage, l'échantillon et la durée?
集合处理的利器
达梦数据库udf实现
Interprocess communication (IPC): shared memory
[detailed explanation of AUTOSAR 14 startup process]
Record eval() and no in pytoch_ grad()
Reading notes of Clickhouse principle analysis and Application Practice (5)
AI open2022 | overview of recommendation systems based on heterogeneous information networks: concepts, methods, applications and resources
MYSQL中 find_in_set() 函数用法详解
How to automatically install pythn third-party libraries
5. 数据访问 - EntityFramework集成
AI Open2022|基于异质信息网络的推荐系统综述:概念,方法,应用与资源
Shang Silicon Valley Shang preferred project tutorial release
Vulnhub's darkhole_ two
Oracle 中文排序 Oracle 中文字段排序
技术分享 | 接口测试价值与体系