- 论坛徽章:
- 0
|
redhat 6 搭建yum后 使用yum grouplist 命令看不到组包信息
yum源为本地
配置文件:
[root@localhost yum.repos.d]# more rhel-source.repo
[rhel-source]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=file:///var/ftp/pub/Packages/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[rhel-source-beta]
name=Red Hat Enterprise Linux $releasever Beta - $basearch - Source
baseurl=file:///var/ftp/pub/Packages/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/R
PM-GPG-KEY-redhat-release
/var/ftp/pub/Packages 为安装包存放目录
安装软件可以
[root@localhost yum.repos.d]# yum install bind
Loaded plugins: product-id, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package bind.i686 32:9.7.3-8.P3.el6 will be installed
--> Processing Dependency: bind-libs = 32:9.7.3-8.P3.el6 for package: 32:bind-9.7.3-8.P3.el6.i686
--> Processing Dependency: liblwres.so.60 for package: 32:bind-9.7.3-8.P3.el6.i686
--> Processing Dependency: libisccfg.so.62 for package: 32:bind-9.7.3-8.P3.el6.i686
--> Processing Dependency: libisccc.so.60 for package: 32:bind-9.7.3-8.P3.el6.i686
--> Processing Dependency: libisc.so.62 for package: 32:bind-9.7.3-8.P3.el6.i686
--> Processing Dependency: libdns.so.69 for package: 32:bind-9.7.3-8.P3.el6.i686
--> Processing Dependency: libbind9.so.60 for package: 32:bind-9.7.3-8.P3.el6.i686
--> Running transaction check
---> Package bind-libs.i686 32:9.7.3-8.P3.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Installing:
bind i686 32:9.7.3-8.P3.el6 rhel-source 3.9 M
Installing for dependencies:
bind-libs i686 32:9.7.3-8.P3.el6 rhel-source 849 k
Transaction Summary
=============================================================================================================================================================
Install 2 Package(s)
Total download size: 4.7 M
Installed size: 9.2 M
Is this ok [y/N]: y
Downloading Packages:
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 42 MB/s | 4.7 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : 32:bind-libs-9.7.3-8.P3.el6.i686 1/2
Installing : 32:bind-9.7.3-8.P3.el6.i686 2/2
Installed products updated.
Installed:
bind.i686 32:9.7.3-8.P3.el6
Dependency Installed:
bind-libs.i686 32:9.7.3-8.P3.el6
Complete!
但是 查看组包信息就是不行
[root@localhost yum.repos.d]# yum grouplist
Loaded plugins: product-id, subscription-manager
Updating certificate-based repositories.
Setting up Group Process
Done
删除 /var/ftp/pub下的repodata目录 并重新执行
createrepo /mnt/repodata/8b9d3760efbb81b0e5db8a1f368bc5491eaa0a63014a1aba05c2a113a8545e24-comps-rhel6-Server.xml /var/ftp/pub/
清除yum缓存后 结果如下,还是看不到组包信息
[root@localhost pub]# yum grouplist
Loaded plugins: product-id, subscription-manager
Updating certificate-based repositories.
Setting up Group Process
rhel-source | 1.9 kB 00:00 ...
rhel-source/primary | 1.3 MB 00:00 ...
rhel-source-beta | 1.9 kB 00:00 ...
rhel-source-beta/primary | 1.3 MB 00:00 ...
rhel-source/group_gz | 1.2 kB 00:00 ...
rhel-source-beta/group_gz | 1.2 kB 00:00 ...
Done
求高人指点 |
|