10 Replies Latest reply on May 29, 2007 6:32 PM by user4994457

    Install a package from Solaris 10 cd

    807557
      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.
        • 1. Re: Install a package from Solaris 10 cd
          807557
          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.
          • 2. Re: Install a package from Solaris 10 cd
            807557
            Thanks a lot!!!
            That worked.
            • 3. Re: Install a package from Solaris 10 cd
              807557
              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
              • 4. Re: Install a package from Solaris 10 cd
                807557
                That command should work. Verify that the filesystem isn't corrupt and that there is something in the directory SUNWi1cs/
                • 5. Re: Install a package from Solaris 10 cd
                  user4994457
                  - 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
                  • 6. Re: Install a package from Solaris 10 cd
                    807557
                    Thanks Darren, you cauth me from right place.
                    Problem was same as you said. Now i am successful
                    Thank you very much.
                    Regards
                    • 7. Re: Install a package from Solaris 10 cd
                      807557
                      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
                      • 8. Re: Install a package from Solaris 10 cd
                        user4994457
                        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
                        • 9. Re: Install a package from Solaris 10 cd
                          807557
                          Dear all,
                          im just new to solaris, i have downloaded the cd files from sun website i got 5 iso zip files
                          now what should do i do


                          please reply at your earliest
                          thanks
                          • 10. Re: Install a package from Solaris 10 cd
                            user4994457
                            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