Use the db2_install command, which is available on the DB2 CD-ROM, to install DB2. If your system does not have a local CD-ROM drive, you can mount the CD-ROM on a different system and NFS mount on the current system.
To install DB2 from the DB2 CD-ROM, perform the following steps:
mount -F cdfs -o ro /dev/cdrom/c0b0t510 /cdrom
where c0b0t510 is the device name found under the /dev/cdrom directory and varies with the particular hardware on the system.
/cdrom/db2_install
The db2_install command prompts for one or more of the following to be installed, and for the base directory where the product files are to be installed. The products are listed by keyword and product description.
The command displays the following prompt: Specify one or more of the keywords separated by spaces.
If the default base directory is used, all files will be installed in the /opt/IBMdb2/V5.0 directory.
To view DB2 product documents online, HTML versions of these documents are provided for installation. These documents are translated into several languages. However, not every manual in the DB2 product library is translated into multiple languages. The English version of every manual is available in HTML format. When you select a non-English HTML fileset without selecting the English version, the English HTML fileset is also installed.
A separate package exists for every language in which DB2 documents are translated. Packages for DB2 documentation are given names such as db2ht%L50, where %L represents two letters for the language and locale identifier.
For example, the package name for the DB2 Product Library in English is db2hten50. For a complete list of packages for the DB2 Product Library, see Appendix B. Contents of the DB2 Products.
To install the DB2 Product Library (HTML) package, do the following:
pkgadd -d cdrom-dir/db2 pkgname
where cdrom-dir is the CD-ROM mount directory and pkgname is the package name. For example, to install DB2 documentation in English, you can enter the following command:
pkgadd -d /cdrom-dir/db2 db2hten50
This command installs the compressed-tar files for the DB2 documents in the /opt/IBMdb2/V5.0/doc/lang/html directory, where lang is the language and locale identifier.
/opt/IBMdb2/V5.0/doc/db2insthtml lang
where lang is the language and locale identifier.
For example, lang=en_US for English. For valid language/locale identifiers, see Table 35.
file:/opt/IBMdb2/V5.0/doc/en_US/html/index.htm
To recover some disk space, you may want to remove the compressed tar files. It is recommended that you do not just remove the compressed tar HTML files; instead, you should remove the fileset for the DB2 Product Library.
After the fileset is removed, only compressed tar files will be removed. You will still be able to view the online DB2 books.
A separate package exists for every locale in which DB2 Product Messages are translated. Packages for DB2 Product Messages are given names such as db2ms%L50, where %L represents two letters for the language name. For example, the package name for the DB2 Product Messages in the de (German) locale is db2msde50. For a complete list of DB2 Product Messages, see Appendix B. Contents of the DB2 Products.
To install DB2 Product Message packages, do the following:
pkgadd -d cdrom-dir/db2 pkgname
where cdrom-dir is the CD-ROM mount directory and pkgname is the package name.
For example, to install the DB2 Product Messages in the de (German) locale, enter the following command:
pkgadd -d /cdrom/db2 db2msde50