Updating your environment variables script (Upgrading from Version 4.5 to Version 4.6)
The commands for upgrading IBM Cloud Pak® for Data use variables with the format
${VARIABLE_NAME}
. You can reuse most of the existing information in your
environment variables script. However, to upgrade from Cloud Pak for Data Version 4.5 to Version 4.6, you must update the VERSION
environment
variable.
Editing your environment variables file
- Open your existing environment variable shell script in a text editor.
- Locate the
VERSION
entry and specify the version of Cloud Pak for Data that you want to install:# ------------------------------------------------------------------------------ # Cloud Pak for Data version # ------------------------------------------------------------------------------ export VERSION=4.6.6
For additional information about this section of the script, see Cloud Pak for Data version.
- If you use the
COMPONENTS
variable, verify that the list of components is accurate.# ------------------------------------------------------------------------------ # Components # ------------------------------------------------------------------------------ # Set the following variable if you want to install or upgrade multiple components at the same time. # # To export the variable, you must uncomment the command. export COMPONENTS=cpfs,scheduler,cpd_platform,<component-ID>
- Save your changes.
- Confirm that the script does not contain any errors. For example, if you named the script
cpd_vars.sh
, run:bash ./cpd_vars.sh
Sourcing the environment variables
You must run the script from a bash prompt before you run the installation and upgrade commands. The script exports the environment variables to your command-line session.
- Change to the directory where you saved the script.
- Source the environment variables. For example, if you named the script
cpd_vars.sh
, run:source ./cpd_vars.sh
Cloud Pak for Data version
The variable in the Cloud Pak for Data version section specifies which version of Cloud Pak for Data to install or upgrade to.
Variable | Description |
---|---|
VERSION |
The version of the Cloud Pak for Data software
to install.
|
Components
If you want to install or upgrade multiple components at the same time, you can specify a comma separated list of components. The variable in the Components section is recommended to help you easily specify the list of components.
Variable | Description |
---|---|
COMPONENTS |
The comma separated list of the components that you want to install or upgrade.
|