How we're handling packages that collide with z/OS UNIX tools under /bin/ #825
Replies: 5 comments 5 replies
-
Note: we are still in the process of updating |
Beta Was this translation helpful? Give feedback.
-
I love zot... |
Beta Was this translation helpful? Give feedback.
-
The current option --override-zos-tools is an all or nothing option. We have an issue open for selecting which tools to override #815 |
Beta Was this translation helpful? Give feedback.
-
I have to disagree with this approach - it has already broken a few of my tools and usage and having to communicate this to various users could be problematic. My $0.01 |
Beta Was this translation helpful? Give feedback.
-
I echo the having the default be native the /bin tools. If feasible, it would be good to provide a global config file as input to the |
Beta Was this translation helpful? Give feedback.
-
Package Collisions with z/OS UNIX tools
In short, the z/OS /bin tools will now take precedence over z/OS Open Tools of the same name. If you want the z/OS Open Tools to take precedence, source your zopen configuration as follows:
Make sure to update meta first,
zopen upgrade meta -y
Packages such as
coreutils
,gawk
,sed
,findutils
,grep
,diffutils
,man-db
,iconv
andopenssh
provide executables that conflict with the z/OS UNIX tools under/bin
. Some of these packages differ in behaviour.If you prefer to use the tools without the prefix (as before), follow
Using Tools without Prefix
belowPrefixing for z/OS Open Tools
To ensure seamless interaction with z/OS tools under
/bin
, z/OS Open tools that collide with a z/OS UNIX tool under<package>/bin
will be prefixed as follows:g
prefix for GNU-based tools (Coreutils, Awk, Findutils, Diffutils, Grep, Sed) . E.g.,gmake
andgawk
.zot
prefix for non-GNU-based tools (Man-db, OpenSSH). E.g.,zotssh
andzotman
- Note we avoided using z prefix since it is used in z/OS tools like zlsofTools that have collisions will also print out an install caveat during zopen install.
The original unprefixed binaries will be placed under
<package>/altbin
.Using Tools without Prefix
If you prefer to use the tools without the prefix, you can specify the
--override-zos-tools
option when sourcingzopen-config
as follows:Alternatively, you can add
$ZOPEN_ROOTFS/usr/local/altbin
to your $PATH.This is documented under https://zosopentools.org/#/Guides/ThePackageManager?id=package-collisions-with-zos-unix-tools
Any questions or concerns? add a comment here
Beta Was this translation helpful? Give feedback.
All reactions