apt-get, pkg-get
do exist on some *nix environments, for automatic package installations.apt-get
(Advanced Package Tool) is available on some Linux distributions, quite for some time. For more on apt-get, have a look at the web page, APT HOWTO.The following paragraphs concentrate on a similar tool,
pkg-get
for Solaris environment.What is pkg-get?
(The following text was borrowed from bolthole.com; full-text can be viewed at: Solaris pkg-get tool):
pkg-get
is a tool to automate download and installation of binary packages from archive sites that support it.This tool simplifies fetching the latest version of a package from compatible sites to be as simple as:
% pkg-get install gcc
This will automatically download the appropriate version for your architecture and OS revision (if available), and install the package. If you have an older version of the package already installed, using '
upgrade
' instead of 'install
' will replace the older version with a newer one, if available.If the archive supports dependancies, pkg-get will also download any needed dependancies. For example:
One of the sites that supports these dependancies is www.blastwave.org. Another one is www.sunfreeware.com. Rest of the instructions focus on installing% pkg-get install mod_php
should triger an automatic
% pkg-get install apache
which in turn should automatically trigger
% pkg-get install openssl
.
pkg-get
to get packages from blastwave.org. To get packages from sunfreeware.com, /etc/pkg-get.conf
has to be modified as explained in the latter parts of "How to install pkg-get?" section.How to install pkg-get?
(source: blastwave.org; full-text is at: http://www.blastwave.org/howto.html)
- Download pkg-get from http://www.blastwave.org/pkg_get.pkg. Since it is a package, it has to be installed with
pkgadd
command on Solaris.% pkgadd -d <path of pkg-get>/pkg-get.pkg
- Download and install a copy of
wget
Download locations:
SPARC version: wget-sparc.bin
x86 version : wget-i386.bin
(From GNU wget FAQ)wget
is a network utility to retrieve files from the World Wide Web using HTTP and FTP, the two most widely used Internet protocols. It works non-interactively, so it can work in the background, after having logged off. The program supports recursive retrieval of web-authoring pages as well as FTP sites - you can usewget
to make mirrors of archives and home pages or to travel the Web like a WWW robot.
This version ofwget
is simple, without any dependencies. But this copy is good enough to install the completewget
package as explained later.
Make thewget
, an executable and add it to the PATH environment variable. This step is very important forpkg-get
to work properly. So, make sure you havewget
in your PATH, before you move on to the next step. - Make sure that you have both
wget
, andpkg-get
in your PATH, withwhich wget
, andwhich pkg-get
commands. - Edit
pkg-get
configuration file:/etc/pkg-get.conf
file, to get software packages from a nearby source. You can find a list of Blastwave mirrors at: http://www.blastwave.org/mirrors.php. - Install the complete
wget
package with the man pages and dependencies.% pkg-get -i wget
.-i
switch can be used to instructpkg-get
to install something.
Now remove the simplewget
that was installed in step (2).
Add/opt/csw/bin
at the beginning of PATH variable (the essentialpkg-get
&wget
tools will reside under code>/opt/csw/bin directory.). Also add/opt/csw/man
to the MANPATH to read the newly installed manual pages.man pkg-get
is a good starting point to usepkg-get
, conveniently.
pkg-get available
, lists all the software that is available for download on the remote server.pkg-get compare
is similar topkg-get available
, except that it shows the local status of the packages as well.- A list of software descriptions can be viewed with
pkg-get describe
. - You can search for software using regular expressions.
eg.,
-D is synonymous with describe% pkg-get -D '^g.. '
# (Descriptions from site ibiblio.org )
gdb - The GNU Debugger
gm4 - GNU m4 Unix macro processor
gtk - the Gimp ToolKit library, libgtk - To install a package:
pkg-get install <pkg>
Orpkg-get -i <pkg>
eg.,% pkg-get -i firefox
- To upgrade a package:
pkg-get upgrade <pkg>
Orpkg-get -U <pkg>
eg.,% pkg-get -U firefox
pkg-get
is a pure command line interface. If you are more used to Windows environment, you can try pkgadm
tool from bolthole.com. More information is available at: Solaris pkgadm tool.Acknowledgements & recommendations:Technorati Tag: Solaris
I have decided that this stuff is the most important tool that I have to masterize in order to reach a successful life. The fact of matter is that I have always loved every single thing which is somehow related to computers and stuff.
ReplyDeleteBy the way, I have found pretty interesting stuff in this column. In short, I realized this is certainly a great piece of work.