Filipe Saraiva's blog

Tecnologia, sociedade e política.

Downloading SRPM build requires using urpmi

without comments

Several Linux distributions have specific commands to download build requires of a package. For example, Debian and its derivatives have apt-get build-dep; in OpenSUSE is zypper si -d; Fedora have yum-builddep; etc.

There is in Mandriva and derivatives distros using  urpmi a command to do this too!  But it is mandatory to link the package SRPM source.

The command is:

urpmi –buildrequires <package.src.rpm>

Remember, there are two hyphens in buildrequires option. You must to substitute <package.src.rpm> for the src.rpm package address. For example, to download Choqok build requires you uses::

urpmi –buildrequires

To find the SRPM package you must visit a repository of your distro and copy the complete package name. For example, there is a Tier 1 repository to Mageia in C3SL, the link is

Written by Filipe Saraiva

May 5th, 2013 at 3:48 pm

Leave a Reply