YUM groupinstall对于脱机回购表现异常

时间:2013-09-13 21:14:22

标签: centos redhat rpm yum

我为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将其放入元数据中。现在,这里有一个奇怪的部分。我可以使用命令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 .

1 个答案:

答案 0 :(得分:0)

好的,我明白了。

我的存储库中的一些RPM被检入subversion。有些人不像大人物那样。

由于我不想在其中创建带有svn元数据的repo,我先做了svn export。由于某些rpms不在svn中,因此svn export命令不会复制它们。

当我创建回购时,我试图将不存在的rpm分组,因此错误。