Thursday Jan 08, 2009

command-not-found for OpenSolaris?

Ubuntu has a cool feature where they publish an index of all the binaries on the system, and the package that each one belongs to.  When you combine this with the bash command-not-found hook, you get a default environment that responds to a missing command by telling you what package to download.  (Sorry, too lazy for screenshots...)

Anyway, this feature would be a good use for the new pkg command.  You could write a script that creates an index of all binaries, and then store that index in the user's home directory.  Another script could react to the command-not-found hook in bask and tell the user something useful.

In fact, you could almost do this interactively by querying the pkg database, except that when I query 'dbx' (for example), I get 37 hits.  Most are for the different versions of the right package, and a few are for a package-alias of some kind.  A script that got that answer would need to apply some clever hueristics to do the right thing.

It seems like a good afternoon project, but I haven't had a spare afternoon in quite a while. The pkg-discuss@opensolaris.org alias can offer help with pkg issues.

Any takers?


Wednesday Aug 20, 2008

Goodbye Solaris 9 (for Sun Studio)


We're making the internal transition to building Sun Studio on Solaris 10 (instead of Solaris 9). This is a big deal because the product bits immediately become useless on any Solaris 9 system. There's a new libm.so.2 library that became available on Solaris 10, and if you depend on it, you can't run on Solaris 9. It's a challenge making sure our vast ocean of loosely maintained lab machines is ready for the change. The good news is we get to use newer, faster hardware. :-)

I'll make this post short because I'm using ScribeFire for the first time in forever, and I don't trust it. I can't believe blogging is still this hard. :-(

About

Chris Quenelle

Search

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