Mount the install CD or DVD with the package you wish to install. Then cd into the Solaris_10/Product directory. Once there issue this command:
pkgadd -d . SUNWgcc
(note the period following -d is NOT a typo it indicates that pkgadd should look in the current directory for the package SUNWgcc).
Hope that helps.
Hi,
i am trying to install SUNWi1cs and when i do as you told, i face the following error message. (My current directory is "Product" from the Solaris CD)
pkgadd: ERROR attempt to process datastream failed
- open of <.SUNWi1cs> filed, errno=2
pkgadd: ERROR could not process datastream from <SUNWi1cs>
How to install the package, please help me
Regards
Note the error message.
The poster did not put a space between the directory and the package to be installed.
In the example the containing directory (given after the -d flag) is ".", while the Package name is "SUNWi1cs". There needs to be a space between the arguments.
--
Darren
This does not seem to work from the Solaris 10 CD 1 - the CD directory structure is different.
Specifically I am trying to install SUNWmfrun which is in the /cdrom/tmp/root/var/sadm/pkg directory. However this directory doesn't have a pkgmap file in it so running the pkgadd command fails.
Further investigation shows another directory, /cdrom/tmp/root/var/sadm/pkg/SUNWmfrun/save/pspool/SUNWmfrun which does have that file, but running pkgadd against that directory fails completely.
How can I use pkgadd to add packages from the first CD in the Solaris 10 installation?
|\/|artin
the CD directory structure is different.
Specifically I am trying to install SUNWmfrun which
is in the /cdrom/tmp/root/var/sadm/pkg directory.
Don't go there.
Stay in the Product directories on the CDs. You'll find the package there.
it so running the pkgadd command fails.
No, that's not a package. /var/sadm/pkg contains information about the package database, so some of the files and directories there have the same name as packages (but they're not packages).
/cdrom/tmp/root/var/sadm/pkg/SUNWmfrun/save/pspool/SUN
Wmfrun which does have that file, but running pkgadd
against that directory fails completely.
Still not a package.
CD in the Solaris 10 installation?
The packages are in the 'Product' directory.
Your paths seem odd. You have a normally booted host and you're just inserting the CD? What are the contents of /cdrom?
--
Darren
You'll need to unzip them.
Once you have the .iso file, you can either burn them directly to a CD with a cdwriter, or you can mount them using lofiadm.
lofiadm -a /path/to/iso
mount -r -F hsfs /dev/lofi/1 /mount/point (or whatever the lofi path is).
When done, umount and 'lofiadm -d' to disconnect the file.
--
Darren