07-25-2019 02:51 AM
I am using command line for nipkg instalation. I would like to specify a version of the package to install but so far without success. I looked into help but could not find information about package version during instalation
C:\Program Files\National Instruments\NI Package Manager>nipkg install package_name 1.0.0-0 -y -allow-downgrade
It must be something silly and simple.
07-25-2019 03:47 AM
I will give myself a kudo 🙂 This was more reverse engineerig process than anything and combining knowledge from different package managers I worked out that command should be:
What nipkg tells you once you create syntax error (only then!!!)
But what is version operator? Now I think it is '='
Post for somebody with the same struggles as me.
07-25-2019 11:03 AM
d_wozny, you are correct. The operator for specifying the version is '='. However, the version also needs to be the full version as specified in the package's attributes (see version by running "nipkg info <package_name>"), which, for NI products, is generally in the form of '1.0.0-0+f0'.
07-25-2019 11:40 AM
To clarify and be more specific, as the error message stated, the correct syntax is to specify a "version_operator", which can be any debian based version operator, which currently includes the following { <=>, !=, >=, <=, >>, <<, <>, >, <, = }. Obviously the most recognized and common being '='. Please use the other operators with care if you are not already familiar with their use.
07-26-2019 05:05 AM
Thanks for extra info. Although it might be obvious for somebody using Linux it would be beneficial for this information be statet in help to some extent.