Rothis Blog | my thoughts about the world

Jun/10

21

Adding OpenCSW support to Solaris 10

OpenCSW is an alternative packet resource for Solaris. You can install many open source (GNU) packages to Solaris 10 and it comes with an installer (pkg-get) which is easy to use and resolves dependencies.

So this is how I added opencsw support to Soalris 10:

  • If you`re behind a proxy you have to set HTTPPROXY and HTTPPROXYPORT env:
    export HTTPPROXY=<servername>
    export HTTPPROXYPORT=8080
  • Now you can install the OpenCSW packet:
    pkgadd -d http://www.opencsw.org/pkg_get.pkg
  • This didn`t work for me because it couldn`t communicate with our proxy. So I had to get the packet with wget:
    export http_proxy=http://<proxyserver>:<proxyport>
    /usr/sfw/bin/wget http://www.opencsw.org/pkg_get.pkg
    pkgadd -d pkg_get.pkg
  • Now you should edit /opt/csw/etc/pkg-get.conf and set the proxy parameters as well as setting the url config parameter to point to a mirror closer to you:
    ftp_proxy=http://<proxyserver>:<proxyport>
    http_proxy=http://<proxyserver>:<proxyport>
    export http_proxy ftp_proxy
    url=http://ftp.uni-erlangen.de/pub/mirrors/current
  • You can find a list of mirrors here.
  • Now its a good time to update your packets (we first include /opt/csw/bin in our PATH. You can also make this persistent by setting this in your shells rc file.)
    export PATH=$PATH:/opt/csw/bin
    pkg-get -u

Now you have OpenCSW installed. Get a list of all available packets with “pkg-get -a” and install it with “pkg-get -i <packetname>”. To remove a packet, you should use the built-in Solaris command “pkgrm”.

·

1 comment

Leave a Reply

<<

>>

Theme Design by devolux.nh2.me