LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-08-2011, 03:15 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,374

Rep: Reputation: Disabled
sources.list: what is a deb-src?


In a typical sources.list in a Debian-based distro, I see a line that begins with "deb," and right below it, the same repo preceded by "deb-src." I can figure out that that means "Debian source," but what's the difference between a "deb" and a "deb-src"?

My current sources.list has almost all the deb-src lines removed; I believe I did that at some point because Synaptic was giving me error messages over there being too many entries in my sources.list, and I must have thought the deb-src lines were redundant. I assume I was wrong, eh? The deb-src lines must be there for a reason. I might not have been certain the error messages were due to having too many sources, either; maybe that was only my guess.

Last edited by newbiesforever; 04-08-2011 at 03:19 PM.
 
Old 04-08-2011, 03:17 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
The lines starting with "deb" are binary package repositories (ie. the place where the ".deb" packages which get installed are downloaded from).

The ones starting with "deb-src" are source package repositories, which provide access to the source code of the applications and the files needed to create a ".deb" package out of them.

So, unless you are involved with packaging work, or you want this as a convenient way to access the application's source code (if you have the appropriate "deb-src" lines you can get the code for, eg., gbrainy, by running "apt-get source gbrainy"), you can just comment out those lines.



the above text stolen from http://ubuntuforums.org/showthread.php?t=113615
 
Old 04-08-2011, 03:25 PM   #3
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,374

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AlucardZero View Post
The lines starting with "deb" are binary package repositories (ie. the place where the ".deb" packages which get installed are downloaded from).

The ones starting with "deb-src" are source package repositories, which provide access to the source code of the applications and the files needed to create a ".deb" package out of them.

So, unless you are involved with packaging work, or you want this as a convenient way to access the application's source code (if you have the appropriate "deb-src" lines you can get the code for, eg., gbrainy, by running "apt-get source gbrainy"), you can just comment out those lines.



the above text stolen from http://ubuntuforums.org/showthread.php?t=113615
Thanks, that answered my question. I'm not a programmer, so I guess I didn't make a mistake by removing the deb-src lines.
 
Old 04-08-2011, 04:32 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
"deb-src lines" can be quite useful, if you want a later version of a package.
( By adding e.g. debian sid lines, or Ubuntu natty lines.)

1) sudo apt-get build-dep <name>
2) apt-get -b source <name>=<version>

Example http://www.linuxquestions.org/questi...-deb-855498/#2
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
'E:Malformed line 54 in source list /etc/apt/sources.list (dist parse), E:The list of vsssuccess@gmail.com Linux - Desktop 1 11-17-2010 08:17 AM
RAR and UNRAR >3.51 freeware: debs for debian or deb http:// for sources.list? frenchn00b Debian 6 11-12-2008 01:21 AM
Need Recommendation for Debian Etch sources.list ( /etc/apt/sources.list ) forgox Debian 6 05-05-2007 01:57 PM
Ubuntu Sources List! I need some great sources lists! Jengo Linux - Newbie 1 06-24-2005 04:50 PM
deb-src nowens Debian 1 10-04-2004 09:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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