NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

opkg install from local file

I know there is a solution for making a copy of the ipk repos https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000wwuSCAQ&l=en-US and I may have to go down that path, but it seems like total overkill for installing a single ipk.

I did "opkg download nodejs_8.9.4-r0.9_cortexa9-vfpv3.ipk" to download a copy of node to put on another PC without internet access. I transferred the file to the other PC, but when do "opkg install path to my ipk" opkg fails because it can't access the internet. There are plenty of examples out there saying that this should work. Why does it fail on RT Linux?

Is there a workaround?

 

Thanks,

Richard

0 Kudos
Message 1 of 3
(10,934 Views)

Hey Richard,

 

For clarity: you transferred the `node*.ipk` file to your LinuxRT target's local disk, and then ran `opkg install $path_to_local_ipk`? That operation shouldn't require a network connection, *unless* opkg needs to access a network feed to satisfy package dependencies for the node package.

 

An examination of the `nodejs_8.9.4-r0.9*.ipk` in the 2020/arm/extra feeds suggests that it depends on several other packages (most of which I expect to already be installed). You might have to copy over the missing dependency IPKs as well.

 

Package: nodejs
Version: 8.9.4-r0.9
Description: nodejs version 8.9.4-r0
nodeJS Evented I/O for V8 JavaScript
<snip>
Depends: libc6 (>= 2.24), libcrypto1.0.2 (>= 1.0.2o), libgcc1 (>= 7.3.0), libssl1.0.2 (>= 1.0.2o), libstdc++6 (>= 7.3.0), libz1 (>= 1.2.11)
Recommends: nodejs-lic

 

Could you post the output from opkg? If it doesn't seem very helpful, you can increase the verbosity using the `-V$number` option, like:

opkg -V2 install $path_to_nodejs_ipk

 

0 Kudos
Message 2 of 3
(10,877 Views)

Maybe this article helps?

 

https://dokuwiki.hampel-soft.com/kb/ni-rt/linuxrt/opkg#installation_of_packages_on_offline_devices




DSH Pragmatic Software Development Workshops (Fab, Steve, Brian and me)
Release Automation Tools for LabVIEW (CI/CD integration with LabVIEW)
HSE Discord Server (Discuss our free and commercial tools and services)
DQMH® (Developer Experience that makes you smile )


0 Kudos
Message 3 of 3
(10,870 Views)