Example: Transferring and Installing Packages
The following sample commands and output illustrate the transfer and installation of the UMCsae and UMCnic packages from the SRC software disk 1 on a source host to the destination host.
# mount /cdrom/cdrom0# cd /tmp# pkgtrans -d /cdrom/cdrom0/solaris /tmp/UMCftp.pkg UMCsae UMCnicTransferring <UMCsae> package instanceTransferring <UMCnic> package instance# gzip /tmp/UMC.pkg# md5sum -b UMCftp.pkg.gz > md5sum.txt# cat md5sum.txt588d1fe4ee7d59febef7c26cd441b5bd UMCftp.pkg.gzNow use FTP to transfer the UMCftp.pkg.gz and md5sum.txt files in binary mode to the destination host, and place them in the /tmp directory.
# cd /tmp# md5sum -c md5sum.txtUMCftp.pkg.gz: OK# gzip -d UMCftp.pkg.gz# pkgadd -d /tmp/UMCftp.pkgIf the checksum had failed, instead of the text above you would see something like the following:
# md5sum -c md5sum.txtUMCftp.pkg.gz: FAILEDmd5sum: WARNING: 1 of 1 computed checksum did NOT match