On 09/06/2015 08:30 AM, Gianfranco Costamagna wrote:
> dpkg -s nvidia-cuda-toolkit | grep -o installed

"installed" is also part of the output of a non-installed package.

Still not 100% failproof alternative:
 19 ifeq (installed, $(shell dpkg -s nvidia-cuda-toolkit | grep Status | grep 
-o installed))

or (untested and I don't know if there are valid alternatives):

 19 if ($(shell dpkg -s nvidia-cuda-toolkit | grep -o "Status: install ok 
installed")

Greets
jre

Reply via email to