Adjusting your PATH temporarily

Temporarily adjust your path by running the following two commands:

PATH=/QOpenSys/pkgs/bin:$PATH
export PATH

After that, typing commands should find RPM-installed open source tools (if using bash already, you may need to run hash -r, like the following example

$ bash --version
GNU bash, version 4.4.12(1)-release (powerpc-ibm-os400)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://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.

Verifying that your PATH is set correctly

Simply run the following from your operating environment:

echo $PATH

The output should be a :-delimited list of directories. These will be searched, in order, for any commands entered into your shell. The PATH should contain, at minimum, /QOpenSys/pkgs/bin, very preferrably before the “standard” paths like /QOpenSys/usr/bin or /usr/bin. You may also see other PATHS you added to the beginning, for instance, to choose a Node.js version per the Node.js usage notes

For example: Horrible

/usr/bin:.:/QOpenSys/usr/bin

Bad

/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin

Marginal

/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin:/QOpenSys/pkgs/bin

Best

/QOpenSys/pkgs/bin:/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin