Solarisでは、gcc,mail等のフリーソフトをインストールする場合、 それぞれのアーキテクチャ別にバイナリーが提供されているので、 これをダウンロードしてきて、pkgコマンドによりインストールする。 ダウンロードサイトは、http://www.sunfreeware.com/ftp.html http://sunsite.sut.ac.jp/pub/indexj.html pkgコマンドについては、別紙参照。 尚、いちいち、ftpで持ってくるのが面倒な場合は、pkg-getと言う ソフトをインストールすると、楽チン。linuxにも最近導入されている奴。 pkg-get(BOLTpget.pkg )は、マシン内にあるpkgになにが入って、 どんなバージョンが入っているか、一覧で表示することが出来る。 ただし、対象のパッケージがダウンロードサイトにあるpkgのみを対象にするようだ。 また、ダウンロードサイトの最新バージョンを見つけて、アップグレードも可能。 pkg-getに必要なpkgは、BOLTpget.pkg ,wget,gzip 。 ただし、BOLTpget.pkg を拾ってきて、pkgaddをして、pkg-getを実行すれば wget,gzip は、自動的にダウンロード、インストールしてくれる。 (/usr/local/binにインストールされるのでPATHの変更が必修) Solaris8だと、なぜかうまくwget,gzipが持って来れなかった なので、手動で、持って来て、pkgadd。 pkg-getのコンフィグファイルは、/etc/pkg-get.conf FTPサイトとして、以下のURLを使った方が、sunfreewareより良い ftp://sunsite.sut.ac.jp/pub/sun-info/Solaris/ Solaris8だと、対象のパッケージが多いから便利 pkg-getの使用例は以下の通り。 # pkg-get pkg-get version @(#) pkg-get 1.29@(#) from http://www.bolthole.com/solaris/ pkg-get is used to install free software packages pkg-get Need one of install, update, available,compare -i|install installs a package -u|update updates the catalog table -a|available lists the known available packages -c|compare shows installed package versions vs available upgrade gets upgrades for installed packages -s ftp://site/dir temporarily override site to get from (change /etc/pkg-get.conf for perm) # pkg-get -c software localrev remoterev apache [Not installed] 1.3.3 apache [Not installed] 1.3.6 autoconf [Not installed] 2.13 bash [Not installed] 2.02 bash 2.03 SAME bison [Not installed] 1.25 bison [Not installed] 1.28 ddd [Not installed] 3.0 ddd [Not installed] 3.1.5 emacs [Not installed] 20.3 emacs [Not installed] 20.4 expect [Not installed] 5.28 flex [Not installed] 2.5.4 flex [Not installed] 2.5.4a gcc [Not installed] 2.8.1 gcc 2.95.2 2.95 gcc 2.95.2 2.95.1 gcc 2.95.2 SAME gdb [Not installed] 4.17 gdb [Not installed] 4.18 gdbm [Not installed] 1.7.3 ghostscript [Not installed] 5.50 ghostview [Not installed] 1.5 gpw [Not installed] 6.94 groff [Not installed] 1.11a gtk+ [Not installed] 1.0.6 imap [Not installed] 4.4 joe [Not installed] 2.8 jove [Not installed] 4.16 jpeg [Not installed] 6b less [Not installed] 332 less [Not installed] 340 libstdc++ [Not installed] 2.8.1.1 lsof [Not installed] 4.37 make [Not installed] 3.77 ncurses [Not installed] 4.2 nmap [Not installed] 2.12 ntp [Not installed] 4.0.72j perl [Not installed] 5.005_02 perl [Not installed] 5.005_03 pine [Not installed] 4.05 python [Not installed] 1.5.1 python [Not installed] 1.5.2 rdist [Not installed] 6.1.5 samba [Not installed] 2.0.5 sudo [Not installed] 1.5.9p3 tcl [Not installed] 8.0.3 tcl [Not installed] 8.1 tcl [Not installed] 8.1.1 tcl [Not installed] 8.2.2 tcsh 6.08.00 SAME texinfo [Not installed] 3.12 tiff [Not installed] v3.4beta037 tk [Not installed] 8.0.3 tk [Not installed] 8.1 tk [Not installed] 8.1.1 tk [Not installed] 8.2.2 top [Not installed] 3.5beta8 top [Not installed] 3.5beta9 traceroute [Not installed] 1.4a5 unzip [Not installed] 5.32 unzip [Not installed] 5.40 vim [Not installed] 5.3 wget 1.5.3 SAME xpm [Not installed] 3.4k xxgdb [Not installed] 1.12 zip [Not installed] 2.2 zlib [Not installed] 1.1.2 zlib [Not installed] 1.1.3 # pkg-get -i less Looking up local info... Sorry, there are multiple versions possible Please specify one, in the following syntax pkg-get install less-332 pkg-get install less-340 # pkg-get -i less-340 Looking up local info... ERROR: information for "GNUless" was not found No existing install of GNUless found trying ftp://ftp.sunfreeware.com/pub/freeware/i386/5.7/less-340* 20:46:24 URL: ftp://ftp.sunfreeware.com:21/pub/freeware/i386/5.7/less-340* [6306] -> "/dev/fd/1" [1] 20:47:14 URL: ftp://ftp.sunfreeware.com:21/pub/freeware/i386/5.7/less-340* [247290] -> "/dev/fd/1" [1] Processing package instance from less (i86pc) 340 Free Software Foundation Using as the package base directory. ## Processing package information. ## Processing system information. 4 package pathnames are already properly installed. ## Verifying disk space requirements. ## Checking for conflicts with packages already installed. ## Checking for setuid/setgid programs. Installing less as ## Installing part 1 of 1. /usr/local/bin/less /usr/local/bin/lessecho /usr/local/bin/lesskey /usr/local/doc/less/COPYING /usr/local/doc/less/INSTALL /usr/local/doc/less/NEWS /usr/local/doc/less/README /usr/local/man/man1/less.1 /usr/local/man/man1/lesskey.1 [ verifying class ] Installation of was successful. # pkg-get -u Getting catalog... 20:47:25 URL: ftp://ftp.sunfreeware.com:21/pub/freeware/i386/5.7/catalog [1328] -> "/dev/fd/1" [1] Updating catalog file, EXCLUDING gzip /var/pkg-get/catalog-ftp.sunfreeware.com updated # pkg-get -c software localrev remoterev apache [Not installed] 1.3.3 apache [Not installed] 1.3.6 autoconf [Not installed] 2.13 bash [Not installed] 2.02 bash 2.03 SAME bison [Not installed] 1.25 bison [Not installed] 1.28 ddd [Not installed] 3.0 ddd [Not installed] 3.1.5 emacs [Not installed] 20.3 emacs [Not installed] 20.4 expect [Not installed] 5.28 flex [Not installed] 2.5.4 flex [Not installed] 2.5.4a gcc [Not installed] 2.8.1 gcc 2.95.2 2.95 gcc 2.95.2 2.95.1 gcc 2.95.2 SAME gdb [Not installed] 4.17 gdb [Not installed] 4.18 gdbm [Not installed] 1.7.3 ghostscript [Not installed] 5.50 ghostview [Not installed] 1.5 gpw [Not installed] 6.94 groff [Not installed] 1.11a gtk+ [Not installed] 1.0.6 imap [Not installed] 4.4 joe [Not installed] 2.8 jove [Not installed] 4.16 jpeg [Not installed] 6b less 340 332 less 340 SAME libstdc++ [Not installed] 2.8.1.1 lsof [Not installed] 4.37 make [Not installed] 3.77 ncurses [Not installed] 4.2 nmap [Not installed] 2.12 |