Package Manger What's Up for 2009.06
Well we have been busy over the past 6 months since the 2008.11 release and have added plenty of goodies. Michal has blogged about new performance improvements and Padraig's addition which gives you the ability to search across all repositories. I am going to discuss the new Start Page and WebInstall.
So on startup, which is way faster now thanks to Michal's new caching support, you will see a Start Page instead of the list of packages. Just clicking on any category puts you into the list view and going to Help-> StartPage brings you back to the Start Page.
The Start Page gives us a way to point you at useful online resources, to find the latest packages, help and support. Just click on links in the Start Page to launch the page in Firefox. The Start Page is also something that can be updated and the system will check for updates daily as its refreshing the IPS Image catalog on the system, falling back to the default installed page if no updates are available. So say for instance when an interesting new repository is available we could point you to it from here.
Wouldn't it be nice if as well as pointing to this new repository, we were able to just have a link on the Start Page for you to click on and have the new repository installed for you? Well that leads nicely onto Web Install.
This is a new mode that Package Manager can be launched in to process a new mime type, namely application/vnd.pkg5.info. This mime type is bound to any .p5i file on you system or on any web page whose web server supports this mime type. All of the OpenSolaris websites will have this support added.
On an apache server its just a one line addition to the configuration file:
So what's in this .p5i file? Well it contains the details of any repository you want to add and optionally any packages from this repository. Here's a sample one for installing a few packages from opensoalris.org, sunfreeware and contrib, test.p5i. When you click on the file in Nautilus on your desktop or click on it in a web page on a server with this mime type registered, the above dialog is launched, listing the new repositories that will be added (repositories are not listed if already on your system) and any packages that are to be installed.
Once you click to proceed, the repositories are automatically added, then the packages are added, using the normal install process for Package Manager. Note if its a secure repository, you are first presented with a dialog to enter its SSL key and cert, before continuing with the package installs.
Now the contents of the .p5i file are in JSON format for easy processing, but may take a little getting used to if you want to hand edit them We plan to add another feature to Package Manager which will allow you to save any selections you make in Package Manager as a .p5i file that others can use to both add the repository they come from and install the selected packages.
Shawn Walker whose IPS Publisher API made this all possible will be adding the auto creation of .p5i files to his OpenSolaris Web Search interface at some stage as well. No doubt .p5i files will start popping up all over the place in OpenSolaris land. We will certainly be adding them to the Package Repository page to make it a simple one click to add useful repositories.
We also plan to add auto discovery feature for new repository publishers, whereby repository managers can list related url's of other repositories that might be of interest to a user. Using the Update Manager Notifier process we will check for these updates and give users the option to add them, again using the Web Install. This will not make it into 2009.06, have to save a few things for the next release