直接看代码:

[root@bigdata1 ~]# cat /etc/yum.repos.d/local.repo 
[iso]
name=iso
baseurl=file:///iso
gpgcheck=0

[HighAvailability]
name=HighAvailability
baseurl=file:///iso/HighAvailability
gpgcheck=0

[LoadBalancer]
name=LoadBalancer
baseurl=file:///iso/LoadBalancer
gpgcheck=0

[ResilientStorage]
name=ResilientStorage
baseurl=file:///iso/ResilientStorage
gpgcheck=0

[ScalableFileSystem]
name=ScalableFileSystem
baseurl=file:///iso/ScalableFileSystem
gpgcheck=0

[Server]
name=Server
baseurl=file:///iso/Server
gpgcheck=0

[root@bigdata1 ~]# 
[root@bigdata1 ~]# yum clean metadata
Loaded plugins: product-id, refresh-packagekit, search-disabled-repos, security, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Cleaning repos: InstallMedia HighAvailability LoadBalancer ResilientStorage ScalableFileSystem Server iso
0 metadata files removed
0 sqlite files removed
0 metadata files removed
[root@bigdata1 ~]# 
[root@bigdata1 ~]# yum clean all
Loaded plugins: product-id, refresh-packagekit, search-disabled-repos, security, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Cleaning repos: InstallMedia HighAvailability LoadBalancer ResilientStorage ScalableFileSystem Server iso
Cleaning up Everything
[root@bigdata1 ~]# 
[root@bigdata1 ~]# yum repolist
Loaded plugins: product-id, refresh-packagekit, search-disabled-repos, security, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
HighAvailability                                                                                                                | 4.1 kB     00:00 ... 
HighAvailability/primary_db                                                                                                     |  45 kB     00:00 ... 
LoadBalancer                                                                                                                    | 4.1 kB     00:00 ... 
LoadBalancer/primary_db                                                                                                         | 7.0 kB     00:00 ... 
ResilientStorage                                                                                                                | 4.1 kB     00:00 ... 
ResilientStorage/primary_db                                                                                                     |  50 kB     00:00 ... 
ScalableFileSystem                                                                                                              | 4.1 kB     00:00 ... 
ScalableFileSystem/primary_db                                                                                                   | 6.6 kB     00:00 ... 
Server                                                                                                                          | 4.1 kB     00:00 ... 
Server/primary_db                                                                                                               | 3.0 MB     00:00 ... 
iso                                                                                                                             | 4.1 kB     00:00 ... 
iso/primary_db                                                                                                                  | 3.0 MB     00:00 ... 
repo id                                                                 repo name                                                                status
HighAvailability                                                        HighAvailability                                                            63
LoadBalancer                                                            LoadBalancer                                                                 4
ResilientStorage                                                        ResilientStorage                                                            70
ScalableFileSystem                                                      ScalableFileSystem                                                           7
Server                                                                  Server                                                                   3,861
iso                                                                     iso                                                                      3,861
repolist: 7,866
[root@bigdata1 ~]# 

————————
Done。

说点什么

avatar

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

  Subscribe  
提醒