General Solaris 10 Discussion - Install a package from Solaris 10 cd

Hello,I accidentaly removed a package (namely SUNWgcc) from the system. I have the Solaris 10 CDs. Is it possible to install this package for the CD? I check the CD and it looks like SUNWgcc on it is not a package that I can install with pkgadd -d.Thank You,PN.
[289 byte] By [pn8830a] at [2007-11-26 23:30:36]
# 1

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.

bosconeta at 2007-7-10 14:41:50 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2
Thanks a lot!!!That worked.
pn8830a at 2007-7-10 14:41:50 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3

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

Salman_Qureshia at 2007-7-10 14:41:50 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 4
That command should work. Verify that the filesystem isn't corrupt and that there is something in the directory SUNWi1cs/
bosconeta at 2007-7-10 14:41:50 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 5

- open of <.SUNWi1cs> filed, errno=2

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

Darren_Dunhama at 2007-7-10 14:41:50 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 6
Thanks Darren, you cauth me from right place.Problem was same as you said. Now i am successfulThank you very much.Regards
Salman_Qureshia at 2007-7-10 14:41:50 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 7

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

wardmwa at 2007-7-10 14:41:50 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 8

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.

Don't go there.

Stay in the Product directories on the CDs. You'll find the package there.

However this directory doesn't have a pkgmap file in

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).

Further investigation shows another directory,

/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.

How can I use pkgadd to add packages from the first

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

Darren_Dunhama at 2007-7-10 14:41:50 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 9
Dear all,im just new to solaris, i have downloaded the cd files from sun website i got 5 iso zip filesnow what should do i doplease reply at your earliestthanks
always@learnera at 2007-7-10 14:41:50 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 10

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

Darren_Dunhama at 2007-7-10 14:41:50 > top of Java-index,Solaris Operating System,Solaris 10 Features...