# How to determine the package source for a library ?

**URL:** <https://forums.suse.com/t/how-to-determine-the-package-source-for-a-library/35382>\
**Category:** General Discussion\
**Created:** [November 18, 2020, 1:12pm UTC](https://forums.suse.com/t/how-to-determine-the-package-source-for-a-library/35382 "2020-11-18T13:12:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frederic](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@Frederic](https://forums.suse.com/u/Frederic)\
**Post date:** [November 18, 2020, 1:12pm UTC](https://forums.suse.com/t/how-to-determine-the-package-source-for-a-library/35382/1 "2020-11-18T13:12:41Z")

</div>

Hello  
I would like to know how to determine the package which brings a given library ?  
For **example** , in /lib/firmware, I have a “netronome” folder with some libraries inside (nic, flower…), what package installation brings that ? (I think this is from kernel but which one ? kernel-default ? kernel-azure ? etc…)  
My development team wants to reduce the size of lib directory, but before they erase various libs, I prefer to establish a list of packages impacted.

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [November 18, 2020, 2:23pm UTC](https://forums.suse.com/t/how-to-determine-the-package-source-for-a-library/35382/2 "2020-11-18T14:23:48Z")

</div>

@Frederic Hi, in future can you post in the relevant sub forum for the product your using 😉  
I’m assuming SLES, which release? Firmware at present is in kernel-firmware package, going forward these libraries have been split out so you can pick/choose 😉  
Fire up YaST software management and can see the file list in the ‘files’ tab.

---

<div class="post-metadata">

**Author:** ![Frederic](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@Frederic](https://forums.suse.com/u/Frederic)\
**Post date:** [November 18, 2020, 4:46pm UTC](https://forums.suse.com/t/how-to-determine-the-package-source-for-a-library/35382/3 "2020-11-18T16:46:45Z")

</div>

Thanks @malcolmlewis  
I didn’t know that OS release would be important in such a case since I thought that this kind of command was the same regardless of suse release.  
I was searching for a command line because I didn’t see the little “provides” in Yast search options 😉

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [November 18, 2020, 5:00pm UTC](https://forums.suse.com/t/how-to-determine-the-package-source-for-a-library/35382/4 "2020-11-18T17:00:35Z")

</div>

@Frederic the provides should work with zypper?

```auto
zypper se --provides /lib/firmware/iwlwifi-3160-10.ucode
Refreshing service ...
Loading repository data...
Reading installed packages...

S | Name | Summary | Type
--+-----------------+-----------------------------+--------
i | kernel-firmware | Linux kernel firmware files | package

zypper se --provides iwlwifi-3160-10.ucode
Refreshing service ...
Loading repository data...
Reading installed packages...

S | Name | Summary | Type
--+-----------------+-----------------------------+--------
i | kernel-firmware | Linux kernel firmware files | package

```

---

<div class="post-metadata">

**Author:** ![Frederic](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@Frederic](https://forums.suse.com/u/Frederic)\
**Post date:** [November 19, 2020, 1:44pm UTC](https://forums.suse.com/t/how-to-determine-the-package-source-for-a-library/35382/5 "2020-11-19T13:44:33Z")

</div>

Yes it works @malcolmlewis , I just didn’t see that we can target a specified lib.
