yum検索では見つかりませんが、yumリストには表示されます。

yum検索では見つかりませんが、yumリストには表示されます。

RHEL 6.3でyumリポジトリを使用する際に問題があります。まず、rpmforgeリポジトリを使用してyumリポジトリを作成しました。私もyum listできます。これはyumリストの結果の最後の行です。

zssh.x86_64                                    1.5-0.c.2.el6.rf                     rpmforge 
zsync.x86_64                                   0.6.2-1.el6.rf                       rpmforge 
zvbi.x86_64                                    0.2.33-2.el6.rf                      rpmforge 
zvbi-devel.x86_64                              0.2.33-2.el6.rf                      rpmforge 
zziplib.x86_64                                 0.13.45-1.el6.rf                     rpmforge 
zziplib-devel.x86_64                           0.13.45-1.el6.rf                     rpmforge 

しかし、yumで検索すると、zzip*結果は次のようになります。

[root@noi Downloads]# yum search zzip*
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Warning: No matches found for: zzip*
No Matches found

初めてインストールするときとは異なりました。

[root@noi Downloads]# yum install zzip*
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package zziplib.x86_64 0:0.13.45-1.el6.rf will be installed
---> Package zziplib-devel.x86_64 0:0.13.45-1.el6.rf will be installed
--> Processing Dependency: SDL-devel for package: zziplib-devel-0.13.45-1.el6.rf.x86_64
--> Processing Dependency: zlib-devel for package: zziplib-devel-0.13.45-1.el6.rf.x86_64
--> Finished Dependency Resolution
Error: Package: zziplib-devel-0.13.45-1.el6.rf.x86_64 (rpmforge)
           Requires: zlib-devel
Error: Package: zziplib-devel-0.13.45-1.el6.rf.x86_64 (rpmforge)
           Requires: SDL-devel
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

どうやってこのようなことが起こったのか知っている人はいますか?

ベストアンサー1

変えたくないslmが提供した素晴らしい答え

yum検索を使用した検索では、通常正規表現(globs)は使用されません。検索コマンドは、すでにパッケージ名とそのダイジェストからサブストリングを検索するためです。これをどうやって知ることができますか? yum検索を使用すると、それを知らせるメッセージが表示されます。 名前とスニペットのみが一致します。すべてのアイテムにすべて検索を使用してください。

正規表現なしで検索してみてくださいyum search zzip

おすすめ記事