Open gngrossi opened 12 months ago
I believe this is happening because we have two release lines for libiconv and zlib. A DEV and STABLE release line. It should default to STABLE though.
Looks like we're not checking the tag in zopen-query as we do in install: https://github.com/ZOSOpenTools/meta/blob/main/bin/zopen-install#L206
Note the "--upgradeable" parameter is undocumented (as in not in --help output) and not for general usage at this time as it has issues in it's current form [it sort of works in some scenarios]
For now, what is the command to list installed packages available for upgrade? thanks
I'd like to share a little miniscript that I use to upgrade. The reason for removing old versions is space. Of course, from time to time a zopen list to find 'Not installed' stuff.
for p in zopen list --upgradeable --no-header --no-version|xargs
;do echo " $p ";zopen upgrade -y $p;zopen clean -u $p;zopen clean -c;done
I'd like to share a little miniscript that I use to upgrade. The reason for removing old versions is space. Of course, from time to time a zopen list to find 'Not installed' stuff.
for p in
zopen list --upgradeable --no-header --no-version|xargs
;do echo " $p ";zopen upgrade -y $p;zopen clean -u $p;zopen clean -c;done
Thanks, btw you can use ``` for formatting code (https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#fenced-code-blocks)
Ouups, my simple copy/paste ruined the example. The highlighted command is enclosed in backquotes. Or, I kind of have a rather negative opinion of (aka often hate) these smart editors. :-) The fix is left as an exercise to the benevolent readers.
I was able to upgrade zlib but can't upgrade libiconv or am I running the latest? thanks
bash-5.2$ zopen upgrade zlib
--
bash-5.2$ zopen list --upgradeable Package Installed Available Latest Tag libiconv 1.17.20240124_171511 1.17 master.20240124_171233
bash-5.2$ zopen upgrade libiconv
How do I get libiconv upgraded/installed? Any important updates? thanks
bash-5.2$ zopen list --upgradeable Package Installed Available Latest Tag libiconv 1.17.20240124_171511 1.17 master.20240404_133917
bash-5.2$ zopen install libiconv
Tried to remove/install to get the latest.
09:24:59 RC=(0) [SYSA] bash-5.2$ zopen remove libiconv Removing package: libiconv
09:26:02 RC=(0) [SYSA] bash-5.2$ zopen install libiconv
09:26:42 RC=(0) [SYSA] bash-5.2$ which iconv /hewitt/zopentools/zopen_repo/usr/local/bin/iconv
09:27:07 RC=(0) [SYSA] bash-5.2$ iconv --version iconv (GNU libiconv 1.17) Copyright (C) 2000-2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Bruno Haible.
09:27:33 RC=(0) [SYSA] bash-5.2$ zopen list --upgradeable Package Installed Available Latest Tag libiconv 1.17.20240124_171511 1.17 master.20240404_133917 09:28:12 RC=(0) [SYSA] bash-5.2$
How does libiconv get upgraded?
bash-5.2$ zopen list --upgradeable Package Installed Available Latest Tag libiconv 1.17.20240124_171511 1.17 master.20240611_220856
bash-5.2$ zopen upgrade libiconv
After upgrading meta from v0.8.0 to v0.8.1, I tried to upgrade other available packages.
bash-5.2$ zopen list --upgradeable Package Installed Available Latest Tag libiconv 1.17.20231115_151102 1.17 master.20231115_100536 zlib heads.v1.3.20231122_215452 1.3 develop.20231123_025537
bash-5.2$ zopen upgrade libiconv
bash-5.2$ zopen upgrade zlib