LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-16-2012, 08:01 PM   #1
mahkoe
LQ Newbie
 
Registered: Oct 2011
Posts: 25

Rep: Reputation: Disabled
Which programs use which libraries and vice-versa


I recently tried the newest version of crunchbang, and immediately after discovering iceweasel, I went straight back to my Ubuntu 10.10 install and found the .deb file online. When I tried to install, dpkg told me that it conflicts with hunspell-en-ca. I'm not really sure what this library does, (probably a spell-checker of sorts) but I would like to know which programs would be affected if I were to uninstall it. Is there a command to show which programs use which libraries and which libraries furnish to which programs (sorry for the awkward wording)?

Thanks
 
Old 01-16-2012, 08:10 PM   #2
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,747

Rep: Reputation: 1462Reputation: 1462Reputation: 1462Reputation: 1462Reputation: 1462Reputation: 1462Reputation: 1462Reputation: 1462Reputation: 1462Reputation: 1462
Iceweasel is simply Firefox with the branding removed.

http://wiki.debian.org/Iceweasel

According to the listing in Synaptic, hunspell-en-ca is the Canadian English dictionary for hunspell.
 
1 members found this post helpful.
Old 01-16-2012, 08:14 PM   #3
mahkoe
LQ Newbie
 
Registered: Oct 2011
Posts: 25

Original Poster
Rep: Reputation: Disabled
Okay, well that works. But, now that I'm interested, does anyone know how to achieve the original goal of finding the ties between libraries and programs?
 
Old 01-16-2012, 08:32 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Well, I think your question is not so much focused on libraries as it is general package dependencies.

I'll give you an approach for that in one second, but there is a very low-level approach for libraries specifically.

There's a program called "ldd" (not sure what package(s) provide it). If you run ldd on an executable binary (i.e. not a text script), it should tell you what libraries the binary might load at runtime. For example:
Code:
$ ldd `which awk`
	linux-vdso.so.1 =>  (0x00007fff00f21000)
	libm.so.6 => /lib/libm.so.6 (0x00007fb27c654000)
	libc.so.6 => /lib/libc.so.6 (0x00007fb27c2d1000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fb27c8e5000)
However, there is no way to go in reverse--that is, find all programs that depend on linux-vdso.so.1 for instance.

Back to the package dependency versus library dependency. Check out this page if you use Debian-style deb packages. The examples show how to create a dependency graph. For this to work, you need to have the "dot" program installed (which is included in the graphviz package).

It will generate a PNG file depicting what one (or more) packages are needed by any number of top-level packages. The web page also describes how to go in reverse (find all packages that depend on a specific package).

EDIT:
Be careful though. Some high level packages will generate a LOT of dependencies. For instance, I just ran the commands for package openvpn. The data file for the dot program was 200+ kilobytes in size. That will create a massive graph (and likely require a LONG time to process).

EDIT2:
I should also point out that you can get the package dependency information through apt-cache by itself (without the use of dot). See the man page for apt-cache and the "showpkg" action. For me, I prefer the visuals.

Last edited by Dark_Helmet; 01-16-2012 at 09:28 PM.
 
1 members found this post helpful.
  


Reply

Tags
conflict, dpkg, iceweasel, libraries


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 11.04 PC does not see Windows 7 PC and vice versa Sam_P Linux - Newbie 2 09-18-2011 09:34 AM
uppercase to lowercase and vice versa!! jacky29 Programming 6 03-26-2011 06:19 AM
What does Linux have against ASUS (or vice versa)? xp_newbie Linux - Hardware 54 05-23-2007 11:24 AM
m1 can ping m2, but not vice versa cmacklin Linux - Networking 4 10-31-2004 08:01 PM
KDE under Gnome, or vice-versa Pres General 7 02-01-2004 10:18 AM


All times are GMT -5. The time now is 07:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration