Author Topic: How to Find Which Files Does a Package Contains - *SOLVED*  (Read 645 times)

MagicMichael

  • Guest
How to Find Which Files Does a Package Contains - *SOLVED*
« on: June 30, 2010, 08:48:31 AM »
Sometimes it's necessary to get a specific file installed (e.g. right now, I'm looking for rdebug. If doing a compile, it's important to have the right headers installed). In PCLinuxOS, how can I find what packages I need to install to get a specific file? All help greatly appreciated as I'm learning the distro.

Thanks much
---Michael
« Last Edit: June 30, 2010, 10:54:46 AM by MagicMichael »

Offline JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2128
Re: How to Find Which Files Does a Package Contains
« Reply #1 on: June 30, 2010, 09:18:38 AM »
You need to install the smart package-manager.

Open one of the groups, click on a package and with Content you can read the content the rpm package.

JohnW
PCLinuxOS 2013 KDE4 (64 bit) on: home build system:  Intel Core 2 Quad (q6700) (2.66ghz), Asus P5K motherboard, 4 gig ddr2 memory, Asus Nvidia Geforce GTS 250 1024 mb gddr3, Crucial M4 128 SSD,  2x Samsung 500 gig HDD (sata), TSSTcorp CDDVDW SH-224BB.

musonio

  • Guest
Re: How to Find Which Files Does a Package Contains
« Reply #2 on: June 30, 2010, 09:24:46 AM »
Perhaps I'm missing the point, but if you click on Search in synpatic and select Provided Packages, that should give you the information you need.
However, I did it with rdebug and nothing comes up.

Offline JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2128
Re: How to Find Which Files Does a Package Contains
« Reply #3 on: June 30, 2010, 09:58:09 AM »
With synaptic you can view the package dependencies, but not the content of a rpm package.

With the smart package manager you can read the contents of a rpm package also the change logs (who did packaged the rpm).

JohnW
PCLinuxOS 2013 KDE4 (64 bit) on: home build system:  Intel Core 2 Quad (q6700) (2.66ghz), Asus P5K motherboard, 4 gig ddr2 memory, Asus Nvidia Geforce GTS 250 1024 mb gddr3, Crucial M4 128 SSD,  2x Samsung 500 gig HDD (sata), TSSTcorp CDDVDW SH-224BB.

musonio

  • Guest
Re: How to Find Which Files Does a Package Contains
« Reply #4 on: June 30, 2010, 10:01:47 AM »
If by contents you mean the packages/files, etc. that a certain package provides, you can.

MagicMichael

  • Guest
Re: How to Find Which Files Does a Package Contains
« Reply #5 on: June 30, 2010, 10:03:58 AM »
You need to install the smart package-manager.

Open one of the groups, click on a package and with Content you can read the content the rpm package.

JohnW

That's a useful tool, but searching for a specific file to install would require manually examining the content of every package on the system. Not really practical.

MagicMichael

  • Guest
Re: How to Find Which Files Does a Package Contains
« Reply #6 on: June 30, 2010, 10:10:02 AM »
Perhaps I'm missing the point, but if you click on Search in synpatic and select Provided Packages, that should give you the information you need.
However, I did it with rdebug and nothing comes up.


That will only find package names - or a phrase in the description. It won't find files. Example: Suppose - for a compilation - I need file libruby.so (I believe it's in ruby-devel, but assume I don't know that). I can't do a search in Synaptic to find that specific file. If I need a file, I need to know the name of the package that contains it.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How to Find Which Files Does a Package Contains
« Reply #7 on: June 30, 2010, 10:14:54 AM »
Perhaps I'm missing the point, but if you click on Search in synpatic and select Provided Packages, that should give you the information you need.
However, I did it with rdebug and nothing comes up.


That will only find package names - or a phrase in the description. It won't find files. Example: Suppose - for a compilation - I need file libruby.so (I believe it's in ruby-devel, but assume I don't know that). I can't do a search in Synaptic to find that specific file. If I need a file, I need to know the name of the package that contains it.

Yes, you can. If you know the name of the file you need, search synaptic via provided packages. Example: libfoo.so.3 - search returns foo-devel, so you know that you need foo-devel to get libfoo.so.3. Simple. Easy.
 

MagicMichael

  • Guest
Re: How to Find Which Files Does a Package Contains
« Reply #8 on: June 30, 2010, 10:28:47 AM »
Yes, you can. If you know the name of the file you need, search synaptic via provided packages. Example: libfoo.so.3 - search returns foo-devel, so you know that you need foo-devel to get libfoo.so.3. Simple. Easy.
 
I did not know that.

This is exactly what I was looking for. Thank you very much.

---Michael

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How to Find Which Files Does a Package Contains
« Reply #9 on: June 30, 2010, 10:33:51 AM »
Answered? Please edit your first post in this thread to add [Solved] to the title.