Page 1 of 1

[SOLVED] trick to getting urpmi --buildrequires working?

PostPosted: Apr 12th, '13, 02:06
by r0b0tl0ve
Howdy, fellow mageia users!

I am trying to pull the build sources for vim-X11 by issuing
Code: Select all
urpmi --buildrequires vim-X11
. However, when I try that, I get the message
Code: Select all
No package named vim-X11
. :?:

Re: what is the trick to getting urpmi --buildrequires worki

PostPosted: Apr 12th, '13, 09:58
by martinw
You need to give it the path/name of the source RPM, e.g.
Code: Select all
urpmi --buildrequires vim-7.3.444-2.mga2.src.rpm

Re: what is the trick to getting urpmi --buildrequires worki

PostPosted: Apr 12th, '13, 10:49
by r0b0tl0ve
Beautiful. combined with this, I am all set. Thanks! :D

Re: [SOLVED] trick to getting urpmi --buildrequires working?

PostPosted: Apr 12th, '13, 18:34
by doktor5000
FWIW, you can also run urpmi --buildrequires on a remote src.rpm, so just feed it the URL of a src.rpm,
and it will install the buildrequires.

Re: [SOLVED] trick to getting urpmi --buildrequires working?

PostPosted: Apr 12th, '13, 19:21
by r0b0tl0ve
nice, thanks. So, something like this should give a list of available rpms:

Code: Select all
cat /var/cache/urpmi/mirrors.cache | sed -e 's/i586/SRPMS/' -e "s/..$/\/`urpmq -i vim-X11 | grep -o '[a-zA-Z0-9.-]*\.src\.rpm'`/" | grep -o "\(htt\|ft\)p.*"


:)

Re: [SOLVED] trick to getting urpmi --buildrequires working?

PostPosted: Apr 13th, '13, 04:34
by doktor5000
It will get you the URL of the package you query for. But your regexp misses underscores at least ...