12-22-2016 04:45 PM
Has anyone been able to get the opkg --force-downgrade option to work? I've tried all sorts of variations without success. The only way I can revert a package to a previous version is by uninstalling it, restricting access to the only the specific version I want (either by removing the package from the repo or directing the sbRIO to another repo that doesn't have the updated version), and reinstalling the package. I'm hoping somebody has a better way.
12-23-2016 02:46 AM
I got it down-gradable by directly using the .ipk file name with --force-downgradable.
Not sure how "--force-downgradable" command works with all the packages/Repo at one time
12-23-2016 12:14 PM - edited 12-23-2016 12:16 PM
[Deleted duplicate]
12-23-2016 12:15 PM
Thanks Bhaskar. To make sure I understand you correctly, these are the steps:
I was hoping to find a way to retrieve the prior package from the repository and downgrade it all in one step, much like an upgrade works. This adds more complexity when trying to automate the process.
12-24-2016 09:08 AM
Usually, the feeds put up by NI only have one version of a particular software package, so there's usually nothing to downgrade to. Could you share your use-case where you're interested in automating downgrading software packages?
12-24-2016 03:06 PM
We are setting up our own opkg repository to deploy our software--as packages--to our devices around the world. Our operations team has to be able to roll back to a previous version in case the updated version doesn't work as expected on that particular device.
12-30-2016 01:49 PM
opkg version 0.3.2 added support for targeted installs [1]. You can check which version you are running via "opkg --version", if it is 0.3.2 you are all set. If not, you may want to consider upgrading.
[1] http://git.yoctoproject.org/cgit/cgit.cgi/opkg/commit/?id=9da784d5508157cb327d53eb9abcf54e9926a5a5
01-06-2017 02:01 PM
Thanks Alejandro!
01-09-2017 05:25 PM
Alejandro,
We're running into some problems getting a newer version installed on our 9627. I've tried following the instructions in the INSTALL file, but it fails on my vm during the ./configure step:
No package 'libarchive' found
I installed libarchive using pip, so I'm not sure why configure isn't finding it. Maybe because I'm not using any options? Can you create a list of steps expalining how to compile and deploy it to an sbrio?
Thanks,
Dave
01-10-2017 11:32 AM
pip is a domain specific package manager (python). What you need to do is install the libarchive SDK which is needed to be able compile opkg against it (it uses libarchive to decompress ipk's). What you need to do is install the libarchive-dev package via opkg (opkg install libarchive-dev).
Currently, we don't enable gpg or curl on opkg, so you need to disable it during configure. If you are compiling from master, you need to set sysconfdir and localstatedir too. So, a working configure should look like this:
./configure --enable-gpg=no --sysconfdir=/etc --localstatedir=/var -enable-curl=no
I don't have a 9627 handy, so can't give you step by steps instructions. But hopefully this info will point you in the right direction. If you hit another death end, please post.