Friday, July 4, 2008

Installing pkg_get on Solaris 10

This package is for automatically download and install package. This is package have same function with apt-get on debian or yum on Redhat.
First download package from http://www.blastwave.org/pkg_get-3.8.4-SunOS5.8-all-CSW.pkg
# pkgadd -d pkg_get-3.8.4-SunOS5.8-all-CSW.pkg

The following packages are available:
1 CSWpkgget pkg_get - CSW version of automated package download tool
(all) 3.8.4

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

Processing package instance from

pkg_get - CSW version of automated package download tool(all) 3.8.4
You may use and copy this software without charge, as you see fit.
The software is copyright (C) Philip Brown, Nov 2000-2007

Dont forget to update /opt/csw/etc/pkg-get.conf with your nearest archive site.
(or /etc/opt/csw/pkg-get.conf)

The default site ibiblio.org may or may not be slow for you!


The selected base directory must exist before installation
is attempted.

Do you want this directory created now [y,n,?,q] y
Using as the package base directory.
## Processing package information.
## Processing system information.
WARNING: setting mode of to default mode (755)
WARNING: setting mode of to default mode (755)
WARNING: setting mode of to default mode (755)
WARNING: setting mode of to default mode (755)
WARNING: setting mode of to default mode (755)
1 package pathname is already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of [y,n,?] y

Installing pkg_get - CSW version of automated package download tool as

## Installing part 1 of 1.
/opt/csw/bin/pkg-get
/opt/csw/etc/pkg-get.conf.csw
/opt/csw/share/man/man1m/pkg-get.1m
/var/pkg-get/admin-fullauto
[ verifying class ]
## Executing postinstall script.

Installing /opt/csw/etc/pkg-get.conf.csw to pkg-get.conf

**** IMPORTANT ****
A default configuration file for pkg-get has been created in
/opt/csw/etc/pkg-get.conf
You should edit it to change the 'site' configuration, to point to
the most appropriate mirror for you, from the list at
http://www.blastwave.org/mirrors


Installation of was successful.
#
# /opt/csw/bin/pkg-get -help
pkg-get, by Philip Brown , phil@bolthole.com
(Internal SCCS code revision 3.11)
Originally from http://www.bolthole.com/solaris/pkg-get.html

pkg-get is used to install free software packages
pkg-get
Need one of 'install', 'upgrade', 'available','compare'
'-i|install' installs a package
'-u|upgrade' upgrades already installed packages if possible
'-a|available' lists the available packages in the catalog
'-c|compare' shows installed package versions vs available
'-l|list' shows installed packages by software name only

Optional modifiers:
'-d|download' just download the package, not install
'-D|describe' describe available packages, or search for one
'-U|updatecatalog' updates download site inventory
'-S|sync' Makes update mode sync to version on mirror site
'-f' dont ask any questions: force default pkgadd behaviour
Normally used with an override admin file
See /var/pkg-get/admin-fullauto

'-s ftp://site/dir' temporarily override site to get from
#

For example I will install package nano for editing.
# /opt/csw/bin/pkg-get -i nano
...
/opt/csw/share/locale/sr/LC_MESSAGES/nano.mo
/opt/csw/share/locale/sv/LC_MESSAGES/nano.mo
/opt/csw/share/locale/tr/LC_MESSAGES/nano.mo
/opt/csw/share/locale/uk/LC_MESSAGES/nano.mo
/opt/csw/share/man
/opt/csw/share/man/man1/nano.1
/opt/csw/share/man/man5/nanorc.5
[ verifying class ]
## Executing postinstall script.
Updating the info dir file for CSWtexinfo
chroot: exec failed: No such file or directory

Installation of was successful.

# /opt/csw/bin/nano # running nano

No comments:

Post a Comment