01-27-2016 11:13 AM
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?
01-27-2016 03:52 PM
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.