LinuxQuestions.org
Review your favorite Linux distribution.
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 08-20-2004, 10:54 AM   #1
blotch
Member
 
Registered: Oct 2001
Location: Shrewsbury, England
Posts: 71

Rep: Reputation: 15
What is a 'package'


hello All,


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?


Thanks in advance
 
Old 08-20-2004, 10:59 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
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..
 
Old 08-20-2004, 11:09 AM   #3
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
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.
 
Old 08-20-2004, 05:27 PM   #4
blotch
Member
 
Registered: Oct 2001
Location: Shrewsbury, England
Posts: 71

Original Poster
Rep: Reputation: 15
Hi Bouncer and Mathieu,

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.

Best wishes,


Blotch
 
  


Reply


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
latex2e package unavailable in package manager or apt-get cesine Debian 2 07-11-2006 03:31 PM
message "Problem during installation: x package needed for (installed) x package frayed2 Linux - Newbie 1 04-24-2005 08:05 PM
Is there any way to display the full name of package via dpkg -l <package pattern> ? davidas Debian 4 04-07-2004 11:00 PM
Does apt-get install <package> upgrade the package if it is already installed? davidas Debian 4 04-05-2004 07:12 PM
installing an unstable package from debian's online package archive ganninu Debian 13 11-07-2003 04:00 PM

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

All times are GMT -5. The time now is 03:47 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration