Using NetBSD packages with OpenSolaris / Solaris

Currently lots of utilites from NetBSD are ported for Solaris. So I took latest packaging tools and compiled it for Solaris. Using this you can add NetBSD packages.

\*) Download the base bootstrap.tar.bz2

\*) Untar the contents
gtar xvjf bootstrap.tar.bz2 -C /
This would basically install all the required utils and packaging info.

\*) Set the PKG_PATH to appropriate site from where the NetBSD packages can be fetched.
export PKG_PATH=http://public.enst.fr/pkgsrc/packages/SunOS-5.10/i386/pkgsrc-current/All

\*) Set the PATH makes sure the /usr/pkg/bin & /usr/pkg/sbin are at first because NetBSD uses its own utils for fetching and installing packages.
set PATH=/usr/pkg/bin:/usr/pkg/sbin:$PATH

\*) If you are behind firewall or if you use proxy to download set the environment variables accordingly
export http_proxy=http://proxy-ip:port
export ftp_proxy=http://proxy-ip:port
eg) export http_proxy=http://webproxy:8080/

\*) Now juz try adding a package
pkg_add -v
eg) pkg_add -v wget

NetBSD packages are installed in /usr/pkg/bin or /usr/pkg/sbin directory

\*) To see list of packages which are currently ported visit
http://public.enst.fr/pkgsrc/packages/SunOS-5.10/i386/pkgsrc-current/All

For more information of NetBSD packaging utils visit http://www.pkgsrc.org
Comments:

Just a minor error, but pkgsrc is NetBSDs package system not FreeBSDs (which is the ports collection of which there is no port to (Open)Solaris afaik).

Posted by Olaf Mersmann on December 29, 2005 at 05:40 AM PST #

pkgsrc packages collection is developed by NetBSD, not FreeBSD.

Posted by Pablo Méndez Hernández on December 29, 2005 at 09:06 AM PST #

Thanks Olaf & Pablo for pointing out the errors.

Posted by Pradhap on December 29, 2005 at 12:40 PM PST #

Post a Comment:
Comments are closed for this entry.
About

pradhap

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today