How to use wget to install packages from OpenCSW in Solaris.

You can find packages for Solaris 8, Solaris 9 and Solaris 10 in OpenCSW. OpenCSW is a open source software distribution of repository which packages dedicated for Solaris platforms. You can easily download it and use the required packages.

How to use wget to install packages from OpenCSW in Solaris_bashcodes

[symple_box color=”blue” fade_in=”false” float=”center” text_align=”left” width=””] Things you should do
[/symple_box]

– You can go to OpenCSW website and look for mirrors or bookmark the mirror here.

– Once the you see the list of package you need to search for the particular package you need to install.

– Look out for dependency of the package you wish to install.

– Download i386 packages for Intel machines and Sparc packages for Sparc machines. Try to download the latest release from the mirror.

– Download the package from the mirror to a temporary folder and also download each dependencies with that particular package.

– Extract the file and add the package.

Since you know how to get the packages from OpenCSW mirror, you can now follow the steps to download the package and install it. In this blog I am installing VNCserver and VNCviewer

[symple_box color=”gray” fade_in=”false” float=”center” text_align=”left” width=””]

mkdir /packages

cd packages

/usr/sfw/bin/wget http://mirror.opencsw.org/opencsw/allpkgs/vncserver-1.3.10%2cREV%3d2010.03.04-SunOS5.8-i386-CSW.pkg.gz

/usr/sfw/bin/wget http://mirror.opencsw.org/opencsw/allpkgs/vncviewer-1.3.10%2cREV%3d2010.03.04-SunOS5.8-i386-CSW.pkg.gz

ls -ltr     #Check the downloaded files

[/symple_box]

Extract the files.

[symple_box color=”gray” fade_in=”false” float=”center” text_align=”left” width=””]

gunzip vncserver-1.3.10\,REV\=2010.03.04-SunOS5.8-i386-CSW.pkg.gz

gunzip vncviewer-1.3.10\,REV\=2010.03.04-SunOS5.8-i386-CSW.pkg.gz

[/symple_box]

Install the packages.

[symple_box color=”gray” fade_in=”false” float=”center” text_align=”left” width=””]

pkgadd -d vncserver-1.3.10\,REV\=2010.03.04-SunOS5.8-i386-CSW.pkg

pkgadd -d vncviewer-1.3.10\,REV\=2010.03.04-SunOS5.8-i386-CSW.pkg

[/symple_box]

This way you can install the packages from OpenCSW.

[symple_divider style=”solid” margin_top=”20px” margin_bottom=”20px”]

[symple_box color=”gray” text_align=”left” width=”100%” float=”none”]

If you like the blog please follow us [icon name=”icon-facebook”] [icon name=”icon-twitter”] [icon name=”icon-google-plus-sign”]

[/symple_box]