Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there an option to force zypper to always install the ${PKG}-devel packages to the packages I install via zypper in $PKG, maybe in a config or cmd? I did not see any but would love to be able to use that on my devel machine, to spare me a lot of typing.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

There is not really a switch, but you can write a small wrapper script. This is an example of how it could look like:

#! /bin/sh

i=1

while true
do
    if [ "$(echo "$@" | cut -d " " -f$i)" = "" ] 
    then
        break
    else
        echo "PACKAGE"
        zypper in "$(echo "$@" | cut -d " " -f$i)"
        echo "PACKAGE-DEVEL"
        zypper in "$(echo "$@" | cut -d " " -f$i)-devel"
        i=$(expr $i + 1)
    fi
done

You can adjust the zypper commands as you wish, e.g. answering all questions with yes by default.

share|improve this answer
    
That only works for packages which actually have a development package. I also will probably hack the source itself rather than creating wrapper scripts. Nevertheless, it is kind of a solution. –  drahnr Dec 13 '12 at 11:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.