Source code

Asked by Wolf Canis

Hello,
which repository must I include to see, in Synaptic, the source packages?

I have installed ubuntu 6.10 (edgy).

Thanks in advance,
                                 Mr Canis

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Wolf Canis
Solved:
Last query:
Last reply:
Revision history for this message
Luca Falavigna (dktrkranz) said :
#1

Synaptic doesn't manage source code. In order to do so you have to use the command "apt-get source packagename" (it doesn't require root privileges). You have to modify your /etc/apt/sources.list too: it is an easy task, you have to copy and paste your existing lines and replace their initial "deb" word with "deb-src".

Revision history for this message
Wolf Canis (wolf-canis) said :
#2

Hello,
thanks for your answer, but /etc/apt/sources.list is already correct. That Synaptic doesn't
manage source code, that's a pity. Perhaps in the future, who knows.
Only for my understanding: It's also so, that I must go to the web page http://packages.ubuntulinux.org/ and there with the search box, and only there, can I
find source code. For example I'm searching for gnome-utils. I come to the page
edgy/source/gnome-utils. At the end of this page are 3 choices a .dsc, tar.gz and the diff.
The .dsc file is a text file and for it seems that this file is this, which agt-get needs as parameter. Is that so right?
And for now, no way to have a listing?

Thanks in advance,
                                 Mr Canis

Revision history for this message
Luca Falavigna (dktrkranz) said :
#3

If you want a list of source package, a looong list, you can visit http://packages.ubuntu.com/edgy/source/.
You may consider to install apt-src package too.

Revision history for this message
Best Wolf Canis (wolf-canis) said :
#4

OK, I understand.
I doesn't want senseless modify the source, but some times it's recommend to read the
source to find a bug or only to understand the behaviour of a application, tool or so.
Latest example is my support request [Support #2690]. Only for this reason I have installed
the kernel source and what a miracle, I found the reason. Next step I can provide this info to
this support request and hopefully I get help or some info what I can do further.
And that's what the hole community helps, or simply ubuntu. Isn't that the core?
It should be easier to handle the source packages of the installed binaries.

Anyway, thanks for your bother,
                                                       Mr Canis