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 gccThis 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
pkgaddcommand 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)wgetis 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 usewgetto make mirrors of archives and home pages or to travel the Web like a WWW robot.
This version ofwgetis simple, without any dependencies. But this copy is good enough to install the completewgetpackage as explained later.
Make thewget, an executable and add it to the PATH environment variable. This step is very important forpkg-getto work properly. So, make sure you havewgetin your PATH, before you move on to the next step. - Make sure that you have both
wget, andpkg-getin your PATH, withwhich wget, andwhich pkg-getcommands. - Edit
pkg-getconfiguration file:/etc/pkg-get.conffile, 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
wgetpackage with the man pages and dependencies.% pkg-get -i wget.-iswitch can be used to instructpkg-getto install something.
Now remove the simplewgetthat was installed in step (2).
Add/opt/csw/binat the beginning of PATH variable (the essentialpkg-get&wgettools will reside under code>/opt/csw/bin directory.). Also add/opt/csw/manto the MANPATH to read the newly installed manual pages.man pkg-getis 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 compareis 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
0 comments:
Post a Comment