Use these steps to silently install Teradata Tools and Utilities from the command line.
- Change to the Solaris directory on the media containing the desired TTU Solaris packages:1.cd /Solaris/Sparc or # cd /Solaris/Opteron.
- Execute the following loop:1.for file in *doecho $filepkgask -r /tmp/$file.response -d . $filedoneThis loops through each product directory. While executing pkgask, you are prompted with various questions, such as the directory in which to install and whether to modify the/etc/profile file, and so on. Your answers are saved as files in /tmp/<productname>.response.
- Modify the UNIX main install by adding -r <productname>.response to the pkgadd command.
- [Optional] To use silent installs with SMS, copy the response files into /var/log/teradata/client/20.00.
- Use one of the following command line options to run ./setup.sh:
Option Action ./setup.sh a Installs all packages. ./setup.sh bteq Installs one package (in this example, BTEQ) and any required dependencies. ./setup.sh bteq tptbase Installs two packages and any required dependencies (you can specify as many package names as you want). ./setup.sh 1 2 3 Installs package numbers 1, 2, and 3 and any required dependencies (you can specify as many package numbers as you want). ./setup.sh bteq -installdir=/abc Installs BTEQ (in this example) in /abc/teradata/client/20.00 unless another 20.00 product is already installed at a different prefix. ./setup.sh bteq -prevrel=1 Installs BTEQ (in this example) in /opt/teradata/client/20.00 and any installed previous version (s) (17.10, 17.00, etc.) will not be removed. If an error message about one or more missing library files appears, use the yum install command to download and install the files.A screen similar to the following appears. This example is from a Linux install using the "setup.sh a" command. Actual output will be specific to the platform.Welcome to the Teradata Tools and Utilities XX.XX installation v.XX.XX.XX.XX Copyright YYYY-YYYY Teradata. All rights reserved. IF YOU OR THE ENTITY FOR WHOM YOU ARE INSTALLING THIS SOFTWARE DOES NOT HAVE A WRITTEN LICENSE AGREEMENT WITH TERADATA FOR THIS SOFTWARE, DO NOT INSTALL, USE, OR ALLOW USE OF THIS SOFTWARE. Platform: Linux 64bit Media: TTU Foundation 64-bit Bundle .................................................................. Using /opt as the install directory as one hasn't been provided. Importing TD-RPM-SIGN-KEY TD-RPM-SIGN-KEY was imported. Installing: product Preparing... ################################# [100%] Updating / installing... 1:product-XX.XX.XX.XX-1 ################################# [100%] Installing: product Preparing... ################################# [100%] Updating / installing... 1:product-XX.XX.XX.XX-1 ################################# [100%] Running /opt/teradata/client/XX.XX/bin/setactiverel.sh ... Updating /etc/profile.d/td-ttu.csh and /etc/profile.d/td-ttu.sh... Installing: product Preparing... ################################# [100%] Updating / installing... 1:product-XX.XX.XX.XX-1 ################################# [100%] ... >
- Change back to the root directory.
- Log off and then log on to enable the newly installed software packages.