Using installp

You can install COBOL for AIX directly from the command line using the AIX® command installp.

Remember:

To install the compiler and write the installation output to a log file, run this installp command:

installp -aXYgd install_images_location -e logfile all
Read syntax diagramSkip visual syntax diagram
>>- ---installp-- -aYg--+-----+--+-----+--+-----+--+------------------------------+--+--------------+--all-><
                        '- -p-'  '- -X-'  '- -E-'  '- -d--install_images_location-'  '- -e--logfile-'        

-aYg
Specifies that all the latest and prerequisite installable filesets available in the install_images_location directory are applied and committed, and that the required software license agreement is accepted.
-p
Performs a preview of the installation process by running the preinstallation checks. See Using installp.
-X
Attempts to expand the file system at the installation location if there is insufficient space to complete the install.
-E
Displays software license agreements. This flag is only valid with the -a or -l flags. If the -E flag is specified with the -a flag, a new section is displayed showing the pending license agreements associated with the selected filesets. If the -E flag is specified with the -l flag, output is displayed showing the license agreements associated with all filesets on the media.
-d install_images_location
Specifies the directory where the filesets are located. This path might also be a mounted CD-ROM drive.
-e logfile
Specifies the name and location of the installation log file.
all
Indicates that all the filesets in install_images_location should be attempted during installation.
Important: Although you can choose to install the filesets that you need, it is recommended that you install all the filesets. Otherwise you might encounter errors.

The following example installs all available compiler filesets in the /cdrom/usr/sys/inst.images source directory to the locations specified in Filesets, and writes an installation log file to /tmp/install.log.

Example:

installp -aXYgd /cdrom/usr/sys/inst.images -e /tmp/install.log all