Next | Prev | Up | Top | Contents | Index

Creating a Distribution Directory

Follow the procedure below to create a distribution directory on the installation server. The CD-ROM drive from which you copy the distribution software may be either a local or remote drive. You can copy several CDs to the distribution directory if you wish; however, do not include more than one release of a given product in the directory--different distribution directories must be created for different releases of a product.

  1. Become the superuser on the server with the CD-ROM drive.

    % su -

    Password:

    #

    Note: If the distribution directory is on a different system, become the superuser on that system also.

  2. Get the controller and unit numbers for the CD-ROM drive.

    # hinv

    Look for a line like this in the output of hinv and note numbers that appear in parentheses beside the scsi and cdrom entries:

    SCSI CDROM: scsi (0) cdrom (4)

  3. Eject the CD that is currently in the drive, if any.

    You can omit the argument from this command if there is only one CD-ROM drive on the workstation:

    # eject /dev/scsi/sccntlrdunitl0

    Note: This command has a lowercase l and a zero at the end of it.

  4. Create the directory for the distribution.

    # mkdir distdir

  5. Stop the CD-ROM daemon, if it is running.

    Enter this command on the system with the CD-ROM drive to stop the mediad daemon (see the mediad1M) reference page):

    # mediad -k

  6. Create a mount-point directory for the CD-ROM if none exists.

    # mkdir /CDROM

  7. Insert the CD containing the distribution and mount it.

    # mount -o ro /dev/dsk/dkscntlrdunits7 /CDROM

  8. Copy the distribution to the new directory.

    On the system containing the distribution directory, enter the cp command to copy the installable software from the CD to the distribution directory. The following sample commands illustrate how to copy all distribution software to the directory, creating the necessary subdirectories simultaneously. Use the first command if the CD-ROM is local and the second command if the CD-ROM is remote:

    # cp -r /CDROM/dist/. distdir

    # rcp -r guest@server:/CDROM/dist/. distdir

    You can create a software distribution directory that contains fewer products than are in the CD-ROM distribution by copying the files for just the products that you want. Remember that distribution directories and CD-ROM distributions have an identical structure. For example, to copy just one product from a local CD-ROM drive, use this command:

    % cp /CDROM/dist/product* distdir/product

  9. Copy the release notes to the server (optional).

    Enter this command to create a directory for the release notes and copy them to the installation server:

    # cp -r /CDROM/relnotes/* relnotes_dir

  10. Eject the distribution CD.

    Enter this command on the system with the CD-ROM drive. You can omit the argument if there is just one CD-ROM drive on the system:

    # eject /dev/scsi/sccntlrdunitl0

  11. Repeat steps 7 through 9 for additional CDs.

  12. Restart the CD-ROM daemon, if you stopped it.

    If you stopped mediad in step 5, restart it by entering this command on the system with the CD-ROM drive:

    # mediad

    Note: If you have more than one CD-ROM drive, you might get an error from this command, but you can safely ignore it.


Next | Prev | Up | Top | Contents | Index