Sample Header Ad - 728x90

SLES find what repo provides a package

3 votes
2 answers
9185 views
I need to find out what repo 'git-core' comes from. $ 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 Searching the man pages for zypper, it seems like 'what-provides' would provide this information. It just says "System Packages". $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) These are the repos that exist. 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 On CentOS I would run a repoquery or yum info. How can I tell which repo git 1.8.4 comes from on sles? **Update** I fixed this by using a SLES 11 SP2 image instead of SLES 11 SP1. Leaving question open if someone can still answer the question.
Asked by spuder (18573 rep)
Jun 30, 2014, 07:50 PM
Last activity: Sep 4, 2024, 10:01 AM