Weeell... I just finished writing a fun little toy, as I was hinting at.
Dunno how much futher I'll take this, but here's sharing what I've got
so far, since it actually does something useful.
Advertising blurb:
"Curious about whats in that interesting-sounding IPS package? Dont have
a Solaris 11 system to find out? That's okay, because now, there's
*ipsutil*!
It slices.. it dices....
"
well, actually, it just downloads and extracts the relevant files for a
package, from a given repo, on pretty much any UNIX like OS :)
http://www.bolthole.com/solaris/ipsutil/
LIMITATIONS:
Just extracts "files" and "dir"s. Doesnt even do links, let alone
fancy stuff like postinstall actions, etc.
Contents of above URL:
- the ipsutil script (written in ksh, natch)
- the required, previously mentioned utility, parseipscatalog.c
Usage:
$ ipsutil [-p publisher] -u http://... install pkg1 pkg2 ...
Notes:
publisher defaults to "solaris" if not specified.
url is persistent per publisher, once set.
So usage eventually becomes
$ ipsutil install pkg2 ...
Just to be perverse, I tried it out on a Solaris 8 system.
Yup, seems to work.
BTW, it "installs" files to $INSTALLROOT, which defaults to $HOME/root
Not tested much, sleeptime now... but I did get one successful expansion
of a package from a repo
According to time(1), it took 0.59 seconds from start to finish.
0.09 user seconds.
0.1 system time
In contrast,
pkg install pkg://samepublisher/samepackage
took 30.8 seconds
28.5 user seconds.
Umm... yeah. Well there ya go.
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss