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 fileset_names
Read syntax diagramSkip visual syntax diagram
>>- ---installp-- -aYg--+-----+--+-----+--+-----+--+------------------------------+--+--------------+--fileset_names-><
                        '- -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.
fileset_names
Specifies a list of names of the filesets in install_images_location that you want to install.
Tip: The keyword all can be used to indicate that all filesets should be attempted during installation.

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