LinuxQuestions.org
Visit Jeremy's Blog.
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 05-23-2005, 07:08 AM   #1
coopns
Member
 
Registered: Jan 2004
Location: Scituate, MA
Distribution: Mandrake 10
Posts: 94

Rep: Reputation: 15
What is a package?


Could someone explain what a package is? What it is comprised of?
 
Old 05-23-2005, 07:32 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
package: a collection of things wrapped or boxed together

in computers u can say that as when several piece of code or software that are clubbed together.
 
Old 05-23-2005, 02:33 PM   #3
jalakas
LQ Newbie
 
Registered: May 2005
Location: Orebro, Sweden
Distribution: Gentoo and Kubuntu
Posts: 5

Rep: Reputation: 0
I'm adding a little more info to this thread (sry if i treat anyone as an idiot, but better keep i to simple than to hard).

(almost) All computer programs are made up of a bunch of files. There is the main executable (the "program"), configuration-files (the ones that remember stuff you change in teh program), shared-librarys (stuff many programs use together), icons (for the "start-menu") and stuff like this. But you normally just download one file like program.exe in windows, program.deb in debian or program.rpm in redHat/Mandrake. These singel files that you use to install the program is called a package. They contain all the files needed for the program to work...


So, in binay-distribution-linux-lingo you don't install "programs" or "software", you install packages
Hence, Openoffice is one package, Mozilla another and so on....



----------------
gentoo is of course a totally different ballgame
 
Old 05-23-2005, 02:57 PM   #4
stimpsonjcat
Member
 
Registered: Apr 2005
Location: switzerland
Distribution: debian etch
Posts: 99

Rep: Reputation: 15
Quote:
Originally posted by jalakas
There is the main executable (the "program"), configuration-files (the ones that remember stuff you change in teh program), shared-librarys (stuff many programs use together), icons (for the "start-menu") and stuff like this.
this is an interesting topic. what exactly is inside those libraries and who creates them? do they change from time to time and is this a problem for the programs that use them? if so, who is in charge of the management of these changes?
stimpy
 
Old 05-23-2005, 03:36 PM   #5
gerrit_daniels
Member
 
Registered: Oct 2003
Location: Belgium
Distribution: Kubuntu
Posts: 34

Rep: Reputation: 15
The libraries are executable code. They usually implement common functionality, aspell for example is a library that implements spell checking. Most libraries that are used by different programs have their own packages, so they only need to be installed once.
They do change from time to time and occasionally this can cause problems for the programs that use them. The creator of the distribution (debian, mandrake, ...) makes sure that all program and library packages work correctly together.
 
Old 05-23-2005, 06:58 PM   #6
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,883
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
What is a Debian package? Oriented toward Debian, but still explains the concept well.

Packages generally contain all of the files necessary to implement a set of related commands or features. There are two types of Debian packages:

* Binary packages, which contain executables, configuration files, man/info pages, copyright information, and other documentation.

* Source packages, which consist of a .dsc file describing the source package (including the names of the following files), a .orig.tar.gz file that contains the original unmodified source in gzip-compressed tar format and usually a .diff.gz file that contains the Debian-specific changes to the original source. The utility dpkg-source packs and unpacks Debian source archives; details are provided in its manual page.

Installation of software by the package system uses "dependencies" which are carefully designed by the package maintainers. These dependencies are documented in the control file associated with each package. For example, the package containing the GNU C compiler (gcc) "depends" on the package binutils which includes the linker and assembler. If a user attempts to install gcc without having first installed binutils, the package management system (dpkg) will send an error message that it also needs binutils, and stop installing gcc.


"Introduction to Package Types"
http://www.linuxplanet.com/linuxplan...orials/4161/1/

Last edited by craigevil; 05-23-2005 at 07:03 PM.
 
  


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



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

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

All times are GMT -5. The time now is 09:28 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
Open Source Consulting | Domain Registration