Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.