LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-04-2009, 11:56 AM   #1
QueenZ
Member
 
Registered: Sep 2008
Distribution: openSUSE, Ubuntu
Posts: 373
Blog Entries: 2

Rep: Reputation: 32
What is a repository and dependency?


I see these things very often in Linux but i don't know what they mean.. repositories.. dependencies.. they're all the same to me.. are these some kind of programs or something?
 
Old 02-04-2009, 12:01 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Repositories are simply as they say, Repositories... In terms of package managers which this term generally comes up in, they are areas that store applications and updates.

Dependencies are simply programs or libaries that are required for a certain application to work correctly. You can't run the php module for Apache without having apache, so apache is the dependency of the php module.
 
Old 02-04-2009, 12:09 PM   #3
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
A repository is a collection of programs. In linux, each distribution maintains a collection of the software included. This makes it easy to install and make sure that it works well with that linux distribution. So instead of googling around the web for a *.exe file in Windows, then installing it, you just point your package manager at this collection (repository) and say "install openoffice and firefox" and it installs both. There are usually "official" and "unofficial" repositories. For example, the main Debian repositories are maintained by the Debian project, but Debian Multimedia is maintained by some guy in his basement (though he does a great job) and includes things that the Debian project won't due to legal, freedom, or other reasons (like proprietary codecs and drivers, etc).

Now, linux is a modular system and developers are encouraged to avoid "re-inventing the wheel" when they write new programs. So if a developer is writing a program called "foo", he might need a certain library of functions for graphics display or math or something else. So in his program, instead of re-creating these functions, he might use this other guy's program, "bar". So "foo" depends on "bar". So a good reason to use the repositories and the distro package managers are that whenever you install a program, it also installs all the programs that are required to make it run properly.
 
Old 02-04-2009, 12:21 PM   #4
QueenZ
Member
 
Registered: Sep 2008
Distribution: openSUSE, Ubuntu
Posts: 373

Original Poster
Blog Entries: 2

Rep: Reputation: 32
Quote:
Originally Posted by pljvaldez View Post
Now, linux is a modular system and developers are encouraged to avoid "re-inventing the wheel" when they write new programs. So if a developer is writing a program called "foo", he might need a certain library of functions for graphics display or math or something else. So in his program, instead of re-creating these functions, he might use this other guy's program, "bar". So "foo" depends on "bar". So a good reason to use the repositories and the distro package managers are that whenever you install a program, it also installs all the programs that are required to make it run properly.
Hmm.. that is interesting.. So in windows it would be like making VLC and installing Skype as well or something like that?
 
Old 02-04-2009, 01:59 PM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I don't know much about VLC or skype so I can't comment.

But you can look at this site for Debian programs and see the dependency trees.

Here's a dependency map for openoffice.org. As you can see, when you install openoffice, they built openoffice by using a bunch of little parts other people already had done, and then tied them all together to make a great office suite.
 
Old 02-04-2009, 11:04 PM   #6
digerati1338
Member
 
Registered: May 2007
Location: CO
Distribution: Ubuntu
Posts: 152
Blog Entries: 1

Rep: Reputation: 18
Quote:
Hmm.. that is interesting.. So in windows it would be like making VLC and installing Skype as well or something like that?
Not really. Those are independent applications. It would be more like you asking to have Frostwire installed. Frostwire requires Java or it won't run. So Java is a dependency of frostwire. Your package manager will install Java before it installs frostwire since frostwire won't run otherwise.
 
Old 02-04-2009, 11:42 PM   #7
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Laptops: Debian Jessie XFCE, NAS: OpenMediaVault 3.0
Posts: 1,355

Rep: Reputation: 70
Quote:
Originally Posted by digerati1338 View Post
Not really. Those are independent applications. It would be more like you asking to have Frostwire installed. Frostwire requires Java or it won't run. So Java is a dependency of frostwire. Your package manager will install Java before it installs frostwire since frostwire won't run otherwise.
Very good example and explanation..
 
Old 02-05-2009, 12:12 AM   #8
GibsoneanNode
Member
 
Registered: Jan 2009
Distribution: Desktop- Debian 4.0
Posts: 43

Rep: Reputation: 16
Quote:
Originally Posted by pljvaldez View Post
Debian Multimedia is maintained by some guy in his basement (though he does a great job) and includes things that the Debian project won't due to legal, freedom, or other reasons (like proprietary codecs and drivers, etc).
pljvaldez, coincidence can be funny as I was just asking about this particular issue of legality and codecs just hours ago in the thread Looking for media streaming distro. Is the person who maintains Debian Multimedia then liable? It seems as though they could be taking on a troubling array of legal problems. Yet, I don't often hear this being discussed. True, on the grounds of integrity or personal gratification one will subscribe to the belief of abstaining from or indulging in the use of Debian Multimedia, but where is the friction between these two groups?
 
Old 02-05-2009, 04:13 AM   #9
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by GibsoneanNode View Post
Is the person who maintains Debian Multimedia then liable?
Probably not. He (she?) didn't know the legal rules applicable in the jurisdiction applicable to your computer and as far as the ethical problem of using non-free software is concerned, surely that is on the head of the person who installs or uses the software.
 
Old 02-05-2009, 12:39 PM   #10
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
He has a disclaimer on the site about "codecs may be illegal in your country", etc. So I think that's how he covers his bases and puts the onus on the end user to know whether it's okay to install them.
 
Old 02-05-2009, 11:00 PM   #11
GibsoneanNode
Member
 
Registered: Jan 2009
Distribution: Desktop- Debian 4.0
Posts: 43

Rep: Reputation: 16
Quote:
Originally Posted by salasi View Post
He (she?) didn't know the legal rules applicable in the jurisdiction applicable to your computer.
Quote:
Originally Posted by pljvaldez View Post
He has a disclaimer on the site about "codecs may be illegal in your country", etc.
This is all good stuff to know because for those of us who use operating systems whose licensing attributes freedoms but, due to shared values and a not for profit model, limits commercial licenses in the software, these become more than just theoretical law questions.
 
  


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
yum Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. glowe Linux - Newbie 8 01-13-2016 10:55 PM
Error: Cannot retrieve repository metadata (repomd.xml) for repository: atrpms. stioanid Linux - Software 3 12-13-2008 01:22 AM
Package Kit Error-- "Cannot retrieve repository metadata (repomd.xml) for repository" mbvpixies78 Linux - Newbie 11 08-22-2008 07:20 PM
Repository/Dependency Error - OpenSUSE 10.2 jrodia SUSE / openSUSE 3 03-14-2007 11:08 AM
how to solve failed dependency when dependency exists dwcramer Linux - Newbie 2 08-24-2004 09:03 PM

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

All times are GMT -5. The time now is 11:21 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