From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Pointing to additional repositories - how to edit base-feeds.config

I want to pull some packages from other repositories.  I followed the tutorial on how to edit the opkg config file but it looks like the approach has evolved since the doc was written for the 9068.  On the 9030 controller the file contents looks like this:

src/gz url-0 http://download.ni.com/ni-linux-rt/feeds/2015/x64/ipk

src/gz uri-all-0 http://download.ni.com/ni-linux-rt/feeds/2015/x64/ipk/all

src/gz uri-core2-64-0 http://download.ni.com/ni-linux-rt/feeds/2015/x64/ipk/core2-64

src/gz uri-x64-0 http://download.ni.com/ni-linux-rt/feeds/2015/x64/ipk/x64

I have searched the forum and on-line to understand the syntax of the file but I'm having trouble finding documentation.  Is there somewhere else I should be looking. 

Specifically my questions is how are the uri/url used in the system?  Can I simply add another line like:

src/gz uri-newuri-all-0 http://download.somewhere.com/xxx/yyy

How does the system prioritize between the feeds if the same package is available on multiple repositories? 

0 Kudos
Message 1 of 2
(4,555 Views)

Opkg configuration directory is by deafult /etc/opkg. All .conf files are aggregated to come up with the opkg configuration. A line that starts wit src or src/gz indicate a repo (src/gz indicate the existance of a Packages.gz file, while src the existance of an uncompressed Package index file).  After that, you can define a string to identify your repo, followed by a URI. URI's can be http locations or local repos (file:///<path>). In summary, the syntax is:

<src|src/gz> <feed_name> <URI>

Opkg proritizes using the information on the configured arch items also on the conf files on /etc/opkg (arch <name> <priority>). If there are 2 packages with the same version, with the same architecture, then opkg will pick the first one (they should really be the same).

OpenWRT has a decent intro to opkg document at https://wiki.openwrt.org/doc/techref/opkg that could serve you as a guide. Soon, I hope to put together a more thorough explanation of opkg and it's different configuration options.

Message 2 of 2
(4,198 Views)