我为 RHEL 6.2 创建了一个离线存储库。我将一堆包放在一个名为 JARSS 的组中。我在/etc/yum.repos.d
名为jarss-amg-3.0.repo
. 这里是:
[jarss-amg-3.0]
name=<<omitted>>
baseurl=file:///usr/local/install/rpmbuild/
enabled=1
gpgcheck=0
我执行了一个yum clean all
将其放入元数据中。现在,奇怪的部分来了。我可以使用 command 单独安装软件包yum install package
,但yum groupinstall group
不起作用。
我收到以下错误:
Error Downloading Packages:
package error [Errno 256] No more mirrors to try.
这对我来说没有意义,因为它应该在本地磁盘上。这是yum
软件中的错误吗?我很难相信它可以从磁盘安装单个软件包,但不能安装一个组。
编辑
这是我的comps.xml
文件:
<comps>
<group>
<id>JARSS</id>
<name>JARSS</name>
<default>true</default>
<description>Default 3rd Party Software needed for JARSS installation</description>
<uservisible>true</uservisible>
<packagelist>
<packagereq type="default">ace-tao-amg</packagereq>
<packagereq type="default">opendds-amg</packagereq>
<packagereq type="default">imlib2</packagereq>
<packagereq type="default">imlib2-devel</packagereq>
<packagereq type="default">lct</packagereq>
<packagereq type="default">xerces-c</packagereq>
<packagereq type="default">xerces-c-devel</packagereq>
<packagereq type="default">xmlrpc-c</packagereq>
<packagereq type="default">xsd</packagereq>
<packagereq type="default">atlas</packagereq>
<packagereq type="default">atlas-devel</packagereq>
<packagereq type="default">blas</packagereq>
<packagereq type="default">blas-devel</packagereq>
<packagereq type="default">cppunit</packagereq>
<packagereq type="default">cppunit-devel</packagereq>
<packagereq type="default">lapack</packagereq>
<packagereq type="default">lapack-devel</packagereq>
</packagelist>
</group>
</comps>
这是ls
本地目录中的命令:
atlas-3.8.4-2.el6.x86_64.rpm
atlas-devel-3.8.4-2.el6.x86_64.rpm
blas-3.2.1-4.el6.x86_64.rpm
blas-devel-3.2.1-4.el6.x86_64.rpm
cmake-2.8.7-1.el6.rfb.x86_64.rpm
comps.xml
cppunit-1.12.1-3.1.el6.x86_64.rpm
cppunit-devel-1.12.1-3.1.el6.x86_64.rpm
createrepo-0.4.10-1.el5.rf.noarch.rpm
curl-7.19.7-26.el6.x86_64.rpm
expat-2.0.1-9.1.el6.x86_64.rpm
fltk-1.1.7-2.el5.rf.x86_64.rpm
fltk-devel-1.1.7-2.el5.rf.x86_64.rpm
fox-1.6.33-1.el5.rf.x86_64.rpm
fox-devel-1.6.33-1.el5.rf.x86_64.rpm
ftgl-2.1.3-0.3.rc5.el5.x86_64.rpm
ftgl-devel-2.1.3-0.3.rc5.el5.x86_64.rpm
giblib-1.2.4-1.el5.rf.x86_64.rpm
giblib-devel-1.2.4-1.el5.rf.x86_64.rpm
giblib-devel-1.2.4-1.el6.rf.x86_64.rpm
graphviz-2.28.0-1.el5.x86_64.rpm
imlib2-1.4.4-1.el6.rf.x86_64.rpm
imlib2-devel-1.4.4-1.el6.rf.x86_64.rpm
jdk-7u5-linux-x64.rpm
lapack-3.2.1-4.el6.x86_64.rpm
lapack-devel-3.2.1-4.el6.x86_64.rpm
opendds-amg-3.4.1-1.x86_64.rpm
plib-1.8.4-8.el5.kb.x86_64.rpm
plib-devel-1.8.4-8.el5.kb.x86_64.rpm
README
remove-native-display-driver-amg-3.0-1.x86_64.rpm
repodata
rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
useradd-amg-3.0-1.x86_64.rpm
wxGTK-2.8.9-1.el5.rf.x86_64.rpm
wxGTK-devel-2.8.9-1.el5.rf.x86_64.rpm
xerces-c-2.7.0-1.el5.rf.x86_64.rpm
xerces-c-devel-2.7.0-1.el5.rf.x86_64.rpm
xmlrpc-c-1.06.18-1.el5.kb.x86_64.rpm
xsd-3.3.0-1.x86_64.rpm
编辑 2
createrepo
命令:createrepo -g comps.xml .