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

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

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

Postby r0b0tl0ve » Apr 12th, '13, 02:06

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
. :?:
Last edited by r0b0tl0ve on Apr 12th, '13, 10:50, edited 1 time in total.
r0b0tl0ve
 
Posts: 22
Joined: Apr 12th, '13, 02:00

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

Postby martinw » Apr 12th, '13, 09:58

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
martinw
 
Posts: 608
Joined: May 14th, '11, 10:59

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

Postby r0b0tl0ve » Apr 12th, '13, 10:49

Beautiful. combined with this, I am all set. Thanks! :D
r0b0tl0ve
 
Posts: 22
Joined: Apr 12th, '13, 02:00

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

Postby doktor5000 » Apr 12th, '13, 18:34

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18067
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

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

Postby r0b0tl0ve » Apr 12th, '13, 19:21

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.*"


:)
r0b0tl0ve
 
Posts: 22
Joined: Apr 12th, '13, 02:00

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

Postby doktor5000 » Apr 13th, '13, 04:34

It will get you the URL of the package you query for. But your regexp misses underscores at least ...
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18067
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest