Tuesday, March 16, 2010

Getting pkg-get

The first step in installing squid is to get pkg-get installed in your solaris system

Download pkg-get by right clicking and selecting save as.

http://www.opencsw.org/pkg_get.pkg

Go to the download directory and execute

pkgadd –d pkg-get.pkg

Now add the pkg-get binary in your PATH variable so that you can execute it without typing the full path every time.

Default binary path will be /opt/csw/bin

Setting the Global Path

Edit the /etc/profile file and add the line

PATH=${PATH}:/path-to-application-executable

e.g

PATH=${PATH}:/opt/csw/bin

or you can set it in your user’s home directory by editing the .profile file. 

You will have to logout and login again to set the path.

Wget is required for pkg-get to run. In Solaris 10 it is already installed just change the execution attributes. (/usr/sfw/bin)

chmod 0755 /usr/sfw/bin/wget

for Solaris 8 and 9 you will have to download it.

http://www.opencsw.org/wget-i386.bin (For x86)

http://www.opencsw.org/wget-sparc.bin (For SPARC)

save them some where in the path directories i.e /opt/csw/bin.

Setting Proxy for pkg-get

If you are using a proxy to then you will have to add it in the /opt/csw/etc/pkg-get.conf file uncomment the ftp_proxy and http_proxy and export lines in pkg-get.conf file. Set the values for ftp_proxy and http_proxy to the proxy you are using.

No comments:

Post a Comment