7 Replies Latest reply on Oct 22, 2012 5:55 PM by Nik

    installing multiple packages with pkgadd...

    ostendali
      hi there,
      sorry about this silly question but I am having some problem to install multiple packages with pkgadd. Basically I have packages with this form "apache-2.4.3-sol10-sparc-local" and not with pkg extension. So, checking the man page pkgadd -d /packages/dire/ all suppose to work, but it doesn't.

      I am sure I am doing a very simple error but couldn't figure out.

      It will be appreciated if someone help.

      Cheers!
        • 1. Re: installing multiple packages with pkgadd...
          Nik
          Hi.

          Please show what command you exactly use and what dirs content reqired packages


          Regards.
          • 2. Re: installing multiple packages with pkgadd...
            ostendali
            I did showed the command : pkgadd -d /dir/where/packages all
            i guess this command works only with pkg extentions.....my packages are have this format: apache-2.4.3-sol10-sparc-local

            Here the list of packages that I want to install:
            apache-2.4.3-sol10-sparc-local gmp-4.2.1-sol10-sparc-local libtool-2.4.2-sol10-sparc-local readline-6.2-sol10-sparc-local
            coreutils-8.19-sol10-sparc-local libgcc-3.4.6-sol10-sparc-local openldap-2.4.32-sol10-sparc-local sasl-2.1.25-sol10-sparc-local
            db-4.7.25.NC-sol10-sparc-local libiconv-1.14-sol10-sparc-local openssl-1.0.1c-sol10-sparc-local sqlite-3.7.13-sol10-sparc-local
            expat-2.0.1-sol10-sparc-local libintl-3.4.0-sol10-sparc-local pcre-8.31-sol10-sparc-local zlib-1.2.7-sol10-sparc-local

            Thanks!

            Edited by: ostendali on Oct 22, 2012 3:47 AM
            • 3. Re: installing multiple packages with pkgadd...
              Nik
              Hi.

              pkgadd -d - used for install many packeges from one location.

              location may be:
              1. Directory
              2. Separete file.

              You have many files that contetns packages. You can't do it with one commands, or you should previos converst all packages to one file ( man pkgtrans).


              You should use command:

              pkgadd -d <path>/apache-2.4.3-sol10-sparc-local all
              pkgadd -d <path>/gmp-4.2.1-sol10-sparc-local all
              pkgadd -d <path>/libtool-2.4.2-sol10-sparc-local all
              pkgadd -d <path>/ readline-6.2-sol10-sparc-local all
              pkgadd -d <path>/coreutils-8.19-sol10-sparc-local all
              pkgadd -d <path>/libgcc-3.4.6-sol10-sparc-local all
              pkgadd -d <path>/openldap-2.4.32-sol10-sparc-local all
              pkgadd -d <path>/sasl-2.1.25-sol10-sparc-local all
              pkgadd -d <path>/db-4.7.25.NC-sol10-sparc-local all
              pkgadd -d <path>/libiconv-1.14-sol10-sparc-local all
              pkgadd -d <path>/openssl-1.0.1c-sol10-sparc-local all
              pkgadd -d <path>/sqlite-3.7.13-sol10-sparc-local all
              pkgadd -d <path>/expat-2.0.1-sol10-sparc-local all
              pkgadd -d <path>/libintl-3.4.0-sol10-sparc-local all
              pkgadd -d <path>/pcre-8.31-sol10-sparc-local all
              pkgadd -d <path>/zlib-1.2.7-sol10-sparc-local all


              Regards.

              Edited by: Nik on 22.10.2012 4:06
              • 4. Re: installing multiple packages with pkgadd...
                ostendali
                Thanks for your quick reply, although I did tried those options before....but here another try:
                pkgadd -d <path>/expat-2.0.1-sol10-sparc-local libintl-3.4.0-sol10-sparc-local pcre-8.31-sol10-sparc-local zlib-1.2.7-sol10-sparc-local all
                pkgadd: ERROR: no packages were found in </var/tmp/dstreAAA3Ea4ZX>

                I did tried both with path and without path, by moving into the directory where the packages are....no joy...
                • 5. Re: installing multiple packages with pkgadd...
                  ostendali
                  I see you've corrected....
                  well in that way it is obviously works....no problem with single package installation....
                  I was looking for something to avoid to install 1 by 1 every single package...stuff like yum and apt-get....because I have several servers to do this work on...that is why...
                  Thanks a lot!
                  • 6. Re: installing multiple packages with pkgadd...
                    muvvas
                    hi if you are looking for yum thing in soalris

                    download tool called pkgutil

                    http://mirror.opencsw.org/opencsw/pkgutil.pkg
                    http://www.opencsw.org/

                    install the pkgutil,it will install in /opt/csw/bin

                    then if u are using proxy..first by pass it
                    and u can run pkkgutil -i pkgname (to install)

                    pkgutil -d pkgname (to downlaod it will copy the files to /var/opt/csw/pkgutil/packages/)

                    and next move tehse packages to all the servers and use pkgutil -i pkgname

                    any issues let me know..i hope this will help
                    • 7. Re: installing multiple packages with pkgadd...
                      Nik
                      Hi.
                      -d - show package's location for pkgadd.
                      You can install many packges with one pkgadd but from one location.

                      In case you prefer use one command you should use pkgtrans to transfer all packages to one directory and then combine one file with all packages.


                      Regards.