Networking

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

Applications

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

Data

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

Monitoring

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

Pkg-get
Installation Notes. 1

Table of
Contents. 1

How
pkg-get
Works. 1

Installing
pkg-get 1

Configuring
pkg-get 2

Using
pkg-get
to Install Software. 2

Running
Applications Installed by pkg-get 2

Updating
Software Installed by pkg-get 2

Uninstalling
Software Installed by pkg-get 3

How pkg-get Works

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

You specify which application you want to install and
pkg-get
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 http://www.blastwave.org/pkg_get.pkg
    and put it in /tmp on your Solaris machine.
  3. Type: pkgadd –d /tmp/pkg_get.pkg and answer “yes”
    to all prompts.

Configuring
pkg-get

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

ftp_proxy=proxy.domain:port

http_proxy=proxy.domain:port

export http_proxy ftp_proxy

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

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
application:

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

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

3 Comments »

  • 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: