Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.


Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.


Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.


Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Commands & Shells

Using pkg-get on Solaris

Submitted by on December 13, 2005 – 12:27 pm 3 Comments

Pkg-get Installation Notes

Pkg-get is an open-source,  Sun-approved software installation and management tool for Sun Solaris. You can use pkg-get to install a variety of pre-compiled software without having to worry about version compatibility, patch requirements, libraries, or any other prerequisites. This is a very useful tool.

Table of Contents

Installation Notes. 1

Table of
Contents. 1

Works. 1

pkg-get 1

pkg-get 2

to Install Software. 2

Applications Installed by pkg-get 2

Software Installed by pkg-get 2

Software Installed by pkg-get 3

How pkg-get Works

Pkg-get connects to an online software repository,
such as or, and downloads a list of
all available software for the specific version of Solaris installed on your

You specify which application you want to install and
will download and install the correct version of this application,
along with any pre-requisites and other dependencies.

Anything pkg-get installs can be easily and safely
backed out using pkgrm.

Installing pkg-get

  1. Check on your Solaris server if /opt/csw/bin/pkg-get
    exists. If it does, then you already have pkg-get installed on your
    machine. See the “Configuring pkg-get
    section below.
  2. Download the pkg-get package from
    and put it in /tmp on your Solaris machine.
  3. Type: pkgadd –d /tmp/pkg_get.pkg and answer “yes”
    to all prompts.


  1. Edit the /opt/csw/etc/pkg-get.conf file and add the
    following lines:



export http_proxy ftp_proxy

  1. Run /opt/csw/bin/pkg-get –U to update the software

Using pkg-get to Install Software

In the example below we will use pkg-get to install Ethereal
– an advanced network monitoring tool with a GUI interface.

  1. Make sure that you have plenty of free space available in /var
    and /opt. The exact space requirements depend on the specific
    software you are installing. However, it is a good idea to have at least 1
    GB of free space in both /var and /opt.
  2. Run: /opt/csw/bin/pkg-get –i ethereal
  3. This may take awhile because Ethereal has many
    dependencies. You will need to monitor the installation process and answer
    yes” to any prompts. Again, for certain complicated applications,
    the installation process may take a long time.

Running Applications Installed by pkg-get

Everything pkg-get installs by default goes to /opt/csw.
All executables are placed in /opt/csw/bin. For the example above, the
location of the executable will be “/opt/csw/bin/ethereal”.

A nice feature of pkg-get is that if, for example,
you already had an older version of Ethereal installed somewhere, say, in /usr/local,
the new version installed by pkg-get will not overwrite the old version.
You will simply need to type the full path – /opt/csw/bin/ethereal – to
use the newly-installed version.

Updating Software Installed by pkg-get

Pkg-get can automatically update all of the software
it installed in /opt/csw. The update to a specific application will
automatically include updates to any dependencies. This is a great time-saver
for you. Here’s an example of using pkg-get to upgrade the Ethereal

  1. Run: /opt/csw/bin/pkg-get –u ethereal
  2. Follow the upgrade process and answer “yes” to any

Or you can use pkg-get to upgrade all software
installed in /opt/csw. Here’s the command:

  1. Run: /opt/csw/bin/pkg-get –u
  2. Follow the upgrade process and answer “yes” to any
    prompts. This will be a lengthy process if you used pkg-get to
    install many software titles.

Uninstalling Software Installed by pkg-get

You can use pkgrm to uninstall any or all software
installed with pkg-get. Here’s an example of how to uninstall Ethereal:

  1. All packages installed by pkg-get will begin with
    the “CSW” string. You can list all packages installed by pkg-get
    by running this command: pkginfo | grep CSW
  2. In this example, Ethereal package is called CSWethereal.
    So to remove it, simply do: pkgrm CSWethereal
  3. This is a standard Solaris way of uninstalling software.
    It does not involve running pkg-get.

Print Friendly, PDF & Email


  • baldy eire says:

    Okay, so, I’m not asking what monitor I should buy, merely what features that make a difference in gaming. For example, the size of a monitor is a personal preference/budget question. You might not like it, but you can play any game on any size monitor. If you have the requirements, the game will transmit into the monitor with no problem.

    I realize that resolution is important as well, as these new video cards transmit massive resolutions that an LCD monitor might not support, but once again, I’m really not trying to discuss things of this nature. I just want to know which features sacrifice gaming performance for value.

    Think FPS, strategy, and the occasional movie.

    What contrast ratio, response time, refresh rate, brightness, and other features should I be considering?

  • Derek says:

    I’m going to start monitoring my bp at home. What kind of monitor is best: arm, wrist, or finger? I have a small arm. I also don’t have a lot of money. Maybe $50.00 is all I can spend on this.

  • Jamal says:

    My parents are monitoring me and i do pretty private things. How do i
    remove the monitoring program, or how do i make my computer unvailable for the monitoring program?

Leave a Reply

%d bloggers like this: