Easy way to upgrade all installed packages?
-
Dear friends,
- is there any easy way to upgrade all installed packages (application) without the need to write the package name etc?
Something like:
opkg upgrade *(I know that the above doesn't work...)
- what is the best way to install C++ environment at my onion in order to program it in C/C++ (please be as much explanatory as you can)
Thanks and Best Regards,
Mike Kranidis
-
@Mike-Kranidis
Regarding your point 1:- is there any easy way to upgrade all installed packages (application) without the need to write the package name etc?
That would be nice. However I am unable to find any easy way to do it - Omega admins: do you have any suggestions?
The best I can think of at the moment is to write a script that processes the output of opkg list-installed and run opkg ugrade for each package listed.
Regrading your point 2:
-
what is the best way to install C++ environment at my onion in order to program it in C/C++
The Omega doesn't really have the resources to run a C++ compilation environment (I could be wrong and would be interested to here otherwise if I am).
The best that can be done and what I do is to use a cross-compilation environment on another system (I I use a KUbuntu system).
Some instructions for the toolchain used can be found at:and details of its setup and usage can be found at:
I have been using this for building my new-gpio C++ code and associated programs, information on which can be found at:
- is there any easy way to upgrade all installed packages (application) without the need to write the package name etc?
-
Thank a lot for your detailed answer.
I will try the cross compilation way.Best Regards,
Mike Kranidis
-
opkg list-upgradable | cut -d' ' -f1 | while read -r line; do opkg upgrade "$line"; done
-
@Matt-Nelson said in Easy way to upgrade all installed packages?:
opkg list-upgradable | cut -d' ' -f1 | while read -r line; do opkg upgrade "$line"; done
@Matt-Nelson I believe your script to be accurate for an Omage2(+) but on an original omega the console output seems slightly different. Here's my working version of your script:
opkg list-upgradable | cut -d' ' -f3 | cut -d'(' -f2 | while read -r line; do opkg upgrade "$line"; done
Now, I'm running 0.1.4-b336 and everything seems to be at the latest but nice to keep a record here for future-selves.