The package manager under OpenSolaris 5.11

opensolarispackagessolarissunos

I'm on an OpenSolaris 5.11 server and when I asked about Django, technical support offered to use pkgin as a package manager.

[root@gpx8nnaa ~]# uname -a
SunOS gpx8nnaa.joyent.us 5.11 snv_89 i86pc i386 i86pc
[root@gpx8nnaa ~]# find / -name pkgin
[root@gpx8nnaa ~]#

This computer does not appear to have pkgin installed. How can I install a preferred package manager on this server?

Best Answer

I don't have an OpenSolaris 'server' to hand but the desktop I have handy has packagemanager (gui) and pkg (command line) installed. If you have access to packagemanager then you can add the webstack repository

gksu /usr/bin/packagemanager

    File->Manage Repositories
        Name: Webstack
        URL:  http://pkg.opensolaris.org/webstack
    Add

This should allow you to select the Webstack repository which contains Django.

If you don't have access to a GUI then you can install Django from the command line using pkg

pfexec pkg set-authority -O http://pkg.opensolaris.org/webstack webstack
pfexec pkg refresh 
pfexec pkg install Django

Note in place of pfexec if you have it setup you can use sudo or you can su to root and run the commands directly.