NI Package Manager (NIPM)

cancel
Showing results for 
Search instead for 
Did you mean: 

Installing specific version of package

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.

___________________________
Dawid Wozny
Certified LabVIEW Architect
Certified Azure Administrator
0 Kudos
Message 1 of 5
(4,323 Views)

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:

Capture.PNG

What nipkg tells you once you create syntax error (only then!!!)

Capture.PNG

But what is version operator? Now I think it is '='

 

Post for somebody with the same struggles as me.

___________________________
Dawid Wozny
Certified LabVIEW Architect
Certified Azure Administrator
Message 2 of 5
(4,293 Views)

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'.

Message 3 of 5
(4,245 Views)

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.

Message 4 of 5
(4,231 Views)

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.

___________________________
Dawid Wozny
Certified LabVIEW Architect
Certified Azure Administrator
0 Kudos
Message 5 of 5
(4,206 Views)