LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-18-2009, 10:15 AM   #1
mq15
Member
 
Registered: Apr 2009
Location: Pakistan
Distribution: Linux Mint Cinnamon
Posts: 224

Rep: Reputation: 31
Question What is softwareDependency?


I am switching from Windows to Linux systems,I don't know what are Dependencies. Would someone here explain this please ?

Regards.
 
Old 04-18-2009, 10:41 AM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Dependencies are pieces of software that are required to make another one (fully) functional. For example, imagine you have an audio player. Such a player is just an interface, a collection of toolbars, buttons, etc. In short, it has not got any playback capabilities - if you do not also install software that takes care of that (an audio library, codecs, etc.). Similarly, the graphical user interface itself may depend on separate graphical libraries.
Now that separation makes sense. One piece of software may be used by multiple applications so why install it more than once? Additionally, centralization means that a system is easier to maintain as well as (at least theoretically) more secure. If a bug emerges, then only one package needs to be replaced; you do not have to worry that, somewhere on your system, there is another copy (if not more than one) that does not get patched and that keeps exposing your system to security risks.

Last edited by jay73; 04-18-2009 at 10:47 AM.
 
Old 04-18-2009, 11:05 AM   #3
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Most Linux Package managers can handle dependencies automatically and it is always a good idea to follow the package manager for your distribution.
 
Old 04-18-2009, 11:24 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
The same thing is in Windows, but it's not taken care of automatically, and seems to be less prevalent. How many programs need XP SP2+ to run? Or .NET 1.0? Or the C++ Redistibutable runtime package? Or Java, even?
 
Old 04-18-2009, 11:35 AM   #5
MoonMind
Member
 
Registered: May 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 448

Rep: Reputation: 38
I second what amani and AlucardZero have said; indeed, most package managers have been *developed* to handle dependencies.

If you want to check AlucardZero's notion, install something like RealPlayer on a freshly set-up WinDoze machine and compare the number of files on your drive before and after this; especially instructive is the number of .dll files... (they're a close equivalents to libraries on GNU/Linux systems...).

In that sense, most of this dependency stuff *is* handled automatically on WinDoze - you're never asked or informed about it, your machine gets loaded and clocked with stuff, and after a while you wonder what has happened to your system. To get rid of all that cruft with WinDoze, you have to reinstall - on a GNU/Linux, if you don't need them any more, you can remove them. But essentially, while in WinDoze, most of that stuff gets preloaded and thus bogs down system performance, in GNU/Linux they mostly just sit around. Not too good, either, but no nuisance at all.

M.

Last edited by MoonMind; 04-18-2009 at 11:41 AM.
 
Old 04-18-2009, 01:10 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Look on a Windows system for all the files ending in ".dll". That's the equivalent of what the Linux world calls "dependencies". The only difference is how they get installed.
 
Old 04-19-2009, 08:45 AM   #7
mq15
Member
 
Registered: Apr 2009
Location: Pakistan
Distribution: Linux Mint Cinnamon
Posts: 224

Original Poster
Rep: Reputation: 31
Thanks you all of you for such a comprehensive explanation
 
  


Reply



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



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:16 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration