ZOSOpenTools / meta

Meta repository to tie together the various underlying z/OS Open Source tools repositories here
https://zosopentools.github.io/meta/
Apache License 2.0
37 stars 25 forks source link

zopen clean issue removing a package #652

Open gngrossi opened 6 months ago

gngrossi commented 6 months ago

After installing gpg and grep, I attempted to remove the cached packages. It didn't seem to work for gpg but did for grep. I ran zopen clean --cache --all and was successful.

/hewitt/zopentools/zopen_repo/var/cache/zopen -rw-r--r-- 1 @02858 @ISCICS1 34M Jan 3 13:47 gnupg-2.4.3.20240102_234322.zos.pax.Z -rw-r--r-- 1 @02858 @ISCICS1 630K Jan 3 13:48 grep-3.11.20240103_164118.zos.pax.Z -rw-r--r-- 1 @02858 @ISCICS1 1.1M Jan 3 12:46 zopen_releases.json -rw-r--r-- 1 @02858 @ISCICS1 907 Jan 3 12:46 zopen_releases.timestamp -rw-r--r-- 1 @02858 @ISCICS1 906 Jan 3 13:53 zopen_releases.timestamp.current

13:54:29 RC=(0) [SYSA] bash-5.2$ zopen clean --cache gpg 13:55:06 RC=(0) [SYSA] bash-5.2$ zopen clean --cache grep

/hewitt/zopentools/zopen_repo/var/cache/zopen -rw-r--r-- 1 @02858 @ISCICS1 34M Jan 3 13:47 gnupg-2.4.3.20240102_234322.zos.pax.Z -rw-r--r-- 1 @02858 @ISCICS1 1.1M Jan 3 12:46 zopen_releases.json -rw-r--r-- 1 @02858 @ISCICS1 907 Jan 3 12:46 zopen_releases.timestamp -rw-r--r-- 1 @02858 @ISCICS1 907 Jan 3 13:55 zopen_releases.timestamp.current

13:56:07 RC=(0) [SYSA] bash-5.2$ zopen clean --cache --all

/hewitt/zopentools/zopen_repo/var/cache/zopen -rw-r--r-- 1 @02858 @ISCICS1 1.1M Jan 3 12:46 zopen_releases.json -rw-r--r-- 1 @02858 @ISCICS1 907 Jan 3 12:46 zopen_releases.timestamp -rw-r--r-- 1 @02858 @ISCICS1 908 Jan 3 13:56 zopen_releases.timestamp.current

IgorTodorovskiIBM commented 6 months ago

@DevonianTeuchter is this because the gpg package (gnupg-2.4.3.20240102_234322.zos.pax.Z) does not contain gpg?

DevonianTeuchter commented 6 months ago

likely yes - the package is known as gnupg so there is probably a mismatch between prefix and name...

gngrossi commented 5 months ago

After upgrading nano and trying to remove the previous installed package, messages incorrectly indicated both current and previous were removed.

bash-5.2$ zopen alt nano 1: nano-7.2.20231124_143157.zos 2: nano-7.2.20240123_102158.zos <- current

bash-5.2$ zopen clean --unused nano No currently active version of 'nano'; removing all versions -- nano-7.2.20231124_143157.zos <- Removed -- nano-7.2.20240123_102158.zos <- Removed

bash-5.2$ zopen alt nano 1: nano-7.2.20240123_102158.zos <- current

bash-5.2$ zopen install nano

gngrossi commented 4 months ago

bash-5.2$ zopen clean --unused perl -> perl5-heads.v5.39.8.20240223_145102.zos <- Current version -- perl5-heads.v5.39.7.20240122_185506.zos <- Removed

bash-5.2$ zopen clean --cache perl

/hewitt/zopentools/zopen_repo/var/cache/zopen total 15M -rw-r--r-- 1 @02858 @ISCICS1 30M Feb 26 08:19 perl5-heads.v5.39.8.20240223_145102.zos.pax.Z -rw-r--r-- 1 @02858 @ISCICS1 1.8K Feb 26 08:19 perl5-heads.v5.39.8.20240223_145102.zos.pax.Z.json -rw-r--r-- 1 @02858 @ISCICS1 250K Feb 26 07:36 zopen_releases.json -rw-r--r-- 1 @02858 @ISCICS1 904 Feb 26 07:36 zopen_releases.timestamp -rw-r--r-- 1 @02858 @ISCICS1 905 Feb 26 08:24 zopen_releases.timestamp.current

bash-5.2$ zopen clean --cache

/hewitt/zopentools/zopen_repo/var/cache/zopen total 144K -rw-r--r-- 1 @02858 @ISCICS1 1.8K Feb 26 08:19 perl5-heads.v5.39.8.20240223_145102.zos.pax.Z.json -rw-r--r-- 1 @02858 @ISCICS1 250K Feb 26 07:36 zopen_releases.json -rw-r--r-- 1 @02858 @ISCICS1 904 Feb 26 07:36 zopen_releases.timestamp -rw-r--r-- 1 @02858 @ISCICS1 906 Feb 26 08:26 zopen_releases.timestamp.current