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.
A very basic question. What is a package? Do I understand that I can't just install an application on its own?
What I mean is that would I be unable to install a single programme, say a word processor or a spreadsheet, without having to having to also install a lot of other stuff I didn't want?
I ask this as I've read a lot about 'dependency hell' where one program seems to depend on another being installed. Or have I got confused?
well this depends (funny word, heh) on what app you install...like if you want to install Gnome's game, say Gnometris, but you don't have Gnome installed, you probably will have to install some of Gnome's libraries as different packages. a package is somehow the same as in Windows - a thing that has other things inside it.
but, if you have Gnome and want to install Gnometris, you don't have to get anything else. you have all the app needs, so you just install the app itself. so it's not a "must" to install many packages when wanting to install one - it's only then if the app you want needs something you don't already have, like common libraries.
and "dependency hell" has partly been solved nowadays when there are "intelligent" package managers that automatically handle dependencies and tell you what you need and even get them for you with a single click or keypress..
A package contains all the files necessary to use and run an application or command.
That being said, some packages are dependent on other packages.
These "other packages" are most often a set of libraries - functions that were created for a specific purpose.
Programmers will use these libraries in order to build there application.
The reasoning behind this is simple: Why reinvent the wheel.
Most of the time, in a standard install of Linux, almost all the required libraries will be installed.
If you are missing a library, most graphical package managers will be able to resolve that dependency.
Thanks for troubling to reply. You've put my mind at rest somewhat - I suspect that I'll have to wait until I've built my new machine and installed a distro to really understand what you mean.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.