Page 1 of 1

How to install src packages?

PostPosted: Sep 4th, '11, 20:17
by kemra102
I tried installing the src package for drakconf via:

Code: Select all
urpri --install-src drakconf

but it is not available. Is there a separate repo for src packages?

Re: How to install src packages?

PostPosted: Sep 4th, '11, 20:45
by doktor5000
Yes, there are seperate repos which you need to add manually, but you can also download and install them, maybe faster:
This would be the src.rpm for drakconf in Mageia 1 ftp://ftp.mandrivauser.de/mirrors/Magei ... a1.src.rpm

May i ask why you want to install the source package for drakconf?

Re: How to install src packages?

PostPosted: Sep 4th, '11, 20:58
by kemra102
Thanks for the link: is there a link that shows which repos to add?

I was interested in looking at the src as I had heard the GUI was done in GTK and wondered how much work it was to write a Qt version. I'm not very experienced so it may be a bit beyond me but thought it was at least worth a look.

Re: How to install src packages?

PostPosted: Sep 4th, '11, 21:03
by doktor5000
Well, here you can see the available repos in general: http://mageia.org/wiki/doku.php?id=mirrors_policy
Don't you have already setup some repos automatically when starting software management for the first time?
Or do you mean specifically SRPMs repos with your question?

If anything is unclear or if you need some help, don't hesitate to ask again.

Re: How to install src packages?

PostPosted: Sep 4th, '11, 21:15
by kemra102
Sorry my response wasn't very clear. I have the normal set of repos as you would expect (Core, non-Free & Tainted). What I want is the src repos adding if possible.

Re: How to install src packages?

PostPosted: Sep 4th, '11, 21:40
by doktor5000
You can add them automatically with
Code: Select all
urpmi.addmedia --distrib --mirrorlist --all-media

or if you prefer a specific mirror with
Code: Select all
urpmi.addmedia --distrib --all-media URL_of_mirror/Mageia/distrib/1/SRPMS/

Both gives you another complete set of repos, but additionally adds SRPMS repos.

Re: How to install src packages?

PostPosted: Sep 4th, '11, 23:18
by kemra102
That works great thanks. One more question: where are the src packages un-archived to? Normally in other distros I'd expect this to be /usr/src but if I install one I get the following :

Code: Select all
[root@localhost Downloads]# urpmi --install-src drakconf


    $MIRRORLIST: media/../../SRPMS/core/release/drakconf-12.21.9-2.mga1.src.rpm
   1:drakconf               warning: user iurt does not exist - using root
warning: group iurt does not exist - using root
warning: user iurt does not exist - using root97%)
warning: group iurt does not exist - using root
########################################### [100%]

but if I look in /usr/src it's not there:

Code: Select all
[root@localhost ~]# ll /usr/src
total 12
drwxr-xr-x 24 root root 4096 Sep  4 19:58 linux-2.6.38.8-desktop-4.mga/
drwxr-xr-x  5 root root 4096 Sep  4 19:55 vboxadditions-4.0.6-4.mga1/
drwxr-xr-x  5 root root 4096 Sep  4 19:57 virtualbox-4.0.6-4.mga1/

Re: How to install src packages?

PostPosted: Sep 4th, '11, 23:34
by doktor5000
Hmmm, good question.
Normally you don't install src.rpms as root, because you also don't build rpms as root.
Will have to look at it.