SLESはリポジトリによって提供されるパッケージを探します。

SLESはリポジトリによって提供されるパッケージを探します。

「git-core」リポジトリがどこから来たのかを調べる必要があります。

$ zypper search git-core
Refreshing service 'nu_novell_com'.
Removing repository 'SLE11-WebYaST-SP1-Pool' [done]
Removing repository 'SLE11-WebYaST-SP1-Updates' [done]
Adding repository 'SLES11-SP2-Updates' [done]
Adding repository 'SLE11-WebYaST-SP2-Pool' [done]
Adding repository 'SLES11-SP2-Extension-Store' [done]
Adding repository 'SLES11-SP2-Core' [done]
Adding repository 'SLE11-WebYaST-SP2-Updates' [done]
Adding repository 'SLE11-SP2-Debuginfo-Core' [done]
Adding repository 'SLE11-SP2-Debuginfo-Updates' [done]
Retrieving repository 'SLES11-SP2-Core' metadata [done]
Building repository 'SLES11-SP2-Core' cache [done]
Retrieving repository 'SLES11-SP2-Extension-Store' metadata [done]
Building repository 'SLES11-SP2-Extension-Store' cache [done]
Retrieving repository 'SLES11-SP2-Updates' metadata [done]
Building repository 'SLES11-SP2-Updates' cache [done]
Loading repository data...
Reading installed packages...

S | Name     | Summary        | Type
--+----------+----------------+--------
i | git-core | Core git tools | package

zypperのマニュアルページを検索すると、「what-provides」がこの情報を提供しているようです。 「システムパッケージ」とだけ出てきます。

$zypper what-provides git-core
Refreshing service 'nu_novell_com'.
Loading repository data...
Reading installed packages...
S | Name     | Type    | Version        | Arch   | Repository
--+----------+---------+----------------+--------+------------------------------------------------------------------
v | git-core | package | 2.0.0-201.1    | x86_64 | Software configuration management (SLE_11_SP2)
v | git-core | package | 1.6.0.2-7.31.2 | x86_64 | SUSE-Linux-Enterprise-Software-Development-Kit-11-SP2 11.2.2-1.66
v | git-core | package | 2.0.0-201.1    | i586   | Software configuration management (SLE_11_SP2)
i | git-core | package | 1.8.4-165.1    | x86_64 | (System Packages)

これは既存のリポジトリです。

ls /etc/zypp/repos.d/
nu_novell_com:SLE11-SP2-Debuginfo-Core.repo     nu_novell_com:SLES11-SP1-Pool.repo
nu_novell_com:SLE11-SP2-Debuginfo-Updates.repo  nu_novell_com:SLES11-SP1-Updates.repo
nu_novell_com:SLE11-WebYaST-SP2-Pool.repo       nu_novell_com:SLES11-SP2-Core.repo
nu_novell_com:SLE11-SP1-Debuginfo-Pool.repo     nu_novell_com:SLE11-WebYaST-SP2-Updates.repo    nu_novell_com:SLES11-SP2-Extension-Store.repo
nu_novell_com:SLE11-SP1-Debuginfo-Updates.repo  nu_novell_com:SLES11-Extras.repo                nu_novell_com:SLES11-SP2-Updates.repo

repoqueryCentOSでは、またはを実行しますyum info。 sles git 1.8.4のどのリポジトリがどこから来たのか、どうすればわかりますか?

修正する

SLES 11 SP1の代わりにSLES 11 SP2イメージを使用してこの問題を解決しました。それでも質問に答えられる人がいれば公開しておきます。

ベストアンサー1

シンプルzypper info package

リポジトリのリストに使用されます。zypper lr

@Systemパッケージがインストールされていても、どのリポジトリでも使用できないことを示します。

LANG = C zypper info perl-BSXMLリポジトリデータを読み込んでいます...インストールされているパッケージを読み込んでいます...

Information for package perl-BSXML:
-----------------------------------
Repository     : @System                                      
Name           : perl-BSXML                                   
Version        : 0.0-3.9                                      
Arch           : x86_64                                       
Vendor         : obs://build.opensuse.org/devel:languages:perl
Installed Size : 18.3 KiB                                     
Installed      : Yes                                          
Status         : up-to-date                                   
Summary        : XML templates for the BuildService           
Description    :                                              
    XML templates for the BuildService. See XML/Structured.

したがって、リポジトリは@Systemであり、ベンダーはパッケージが提供されているobsプロジェクトにリンクされます。

おすすめ記事