LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-14-2006, 02:12 PM   #1
black_man
LQ Newbie
 
Registered: May 2003
Location: Iasi, Romania
Distribution: debian
Posts: 27

Rep: Reputation: 15
dselect and deb-src


hi !
can dselect install source packages ? how ? i don't see them in the list.
this is my sources.list:

deb ftp://ftp.iasi.roedu.net/debian/ stable main contrib non-free
deb-src ftp://ftp.iasi.roedu.net/debian/ stable main contrib non-free
deb ftp://ftp.iasi.roedu.net/mirrors/security.debian.org/ stable/updates main contrib non-free
deb-src ftp://ftp.iasi.roedu.net/mirrors/security.debian.org/ stable/updates main contrib non-free

deb ftp://ftp.iasi.roedu.net/debian/ testing main contrib non-free
deb-src ftp://ftp.iasi.roedu.net/debian/ testing main contrib non-free
deb ftp://ftp.iasi.roedu.net/mirrors/security.debian.org/ testing/updates main contrib non-free
deb-src ftp://ftp.iasi.roedu.net/mirrors/security.debian.org/ testing/updates main contrib non-free
 
Old 05-15-2006, 06:23 AM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
The lines that start "deb-src" are the source repositories.
 
Old 05-16-2006, 02:29 AM   #3
black_man
LQ Newbie
 
Registered: May 2003
Location: Iasi, Romania
Distribution: debian
Posts: 27

Original Poster
Rep: Reputation: 15
ok, i know that. but how do i install a source package with dselect ? i repeat that i don't see anywhere in the list something like a section of source packages.
 
Old 06-25-2006, 08:20 AM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
I assume you know how to install a regular pkg. w/ dselect, I don't because I use apt-get & KPackage; so I think your Q really is "How do I get a list of availble source pkgs.?"

What I do is use the "Find" function in KPackage -- in this case my search strings would be "src" & "source".

If you know how to get a CLI list of all available pkgs., then piping it through
Code:
egrep 'src\|source'  | less -S
might yeild what you need.
 
Old 06-25-2006, 08:40 AM   #5
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Your package manager only installs the .deb containing the source, not the source itself! You'll have to do that manually with the familiar "tar -x{j/z}f <package-name>" then cd into the resulting directory, then "./configure && make && make install"
 
Old 06-25-2006, 09:08 AM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
You raise a good point.

I was assuming from the context that he wants to install the pkgs. themselves for some unstated purpose; possibly, but not necessarily, to then actually install the source. Why he would want to that when the same repos give him access to perfectly good binaries, I won't speculate.
 
Old 06-25-2006, 09:27 AM   #7
JackieBrown
Member
 
Registered: Dec 2004
Location: San Antonio, TX
Distribution: Debian-AMD64 Sid
Posts: 481

Rep: Reputation: 31
apt-get build-dep packagename
then
apt-get --build source packagename

you can also use fakeroot if you want
 
Old 06-28-2006, 07:33 AM   #8
black_man
LQ Newbie
 
Registered: May 2003
Location: Iasi, Romania
Distribution: debian
Posts: 27

Original Poster
Rep: Reputation: 15
let's just say i want to have access to the same source files used to build the debian binaries.

all i want is to have the source files copied somewhere (e.g. /usr/src) and then manually get there and compile.

can i do that (getting the source files: .tar.gz, .dsc, .diff.gz) with dselect and the sources.list file above ?

Last edited by black_man; 06-28-2006 at 07:48 AM.
 
  


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
deb-src Locations Kenji Miyamoto Debian 1 08-22-2005 01:36 PM
updatign nv drivers states need precompiles kernel src i have src and headers no joy gonus Debian 6 10-31-2004 10:21 AM
deb-src nowens Debian 1 10-04-2004 09:24 PM
building optimized deb-src packages (debian/rules) Rounan Debian 1 02-17-2004 12:03 PM
Can apt4rpm use deb repositories or install .deb packages? raylpc Linux - General 0 08-18-2003 01:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:37 AM.

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