IPSIntroDemo

compared with
Current by Brian_Leonard
on Jan 13, 2009 14:50.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (23)

View page history
h1. Introduction to IPS Demo (10 Minutes)
 
h4. Description
 
This demo introduces the Image Packaging System and shows it's integration with ZFS.

h4. OpenSolaris Versions Supported
 
2008.05 or newer.

h4. Points to Hit
 
* IPS lets you easily install packages from remote repositories.
* When an installation of a package fails, you can rollback to the snapshot that is created automatically.

h4. Demo Prep
This demo requires internet access.
 
* This demo requires Internet access.
* If you have other repositories than the default, do this in the OpenSolaris virtual machine.
h4. Gotchas
 
None known.

h4. Demo
* Try running *curl*. The command shouldn't be found. We'll try to install this application (it is used for HTTP testing).


h5. Default Repository


* Try running *mc* for Midnight Commander. The command shouldn't be found. We'll try to install this application (it's a popular file manager).
* Let's search for curl. mc. Run *pfexec pkg search -r curl*. \-r mc*.
* You'll get a list of packages with fully qualified names. To install the right one for your OpenSolaris version one run *pfexec pkg install SUNWcurl*. SUNWgnu-mc*.
* Press Ctrl-C while curl is installing to interrupt the installation.
* Explain the error message and show *zfs list* to show that a snapshot before installation has been created.
* If you have time, wait for the install phase of the package and press ctrl+c to interrupt the installation. You'll see a message about the boot environment failing to be updated:
{noformat}
PHASE                                        ACTIONS
Install Phase                                271/271
Reading Existing Index                           1/9^CThe Boot Environment opensolaris failed to be updated. A snapshot was taken before the failed attempt and is mounted here /tmp/tmpzvfzNB. Use 'beadm unmount opensolaris-1' and then 'beadm activate opensolaris-1' if you wish to boot to this BE.
{noformat}
* Show *beadm list* to show that a boot environment has been created, too. You can safely boot into this boot environment if you want to boot into the state before installing the package.
* Let's install the package again - run *pfexec pkg install SUNWcurl*. SUNgnu-mc*.
* Run *pkg info SUNWcurl*. info* *SUNgnu-mc*.
* Run *pkg contents SUNWcurl*. contents* *SUNgnu-mc*.
* There are many different repositories you can use. One of the popular ones is Sun Freeware. Add it by running *pfexec pkg set-authority -O http://pkg.sunfreeware.com:9000 sunfreeware*.
* Run *pfexec pkg refresh* to refresh the package cache.
* Run *mc* to start Midnight Commander
*  

h5. Additional Repository

There are many different repositories you can use. One of the popular ones is Sun Freeware.
* Add it by running *pfexec pkg set-authority \-O* *[http://pkg.sunfreeware.com:9000]* *sunfreeware*.
* You can also browse the repository using Firefox (open [http://pkg.sunfreeware.com:9000]).
* Search for *lynx* (a command-line based web browser) and install it using command line or GUI. Verify that the package was installed by running */opt/sfw/bin/lynx*.
* Run the Package Manager and walk through the GUI. Explain differences between command line pkg and Package Manager.
h4. Demo Cleanup
 
Uninstall packages SUNWcurl SUNWgnu-mc and IPSFWlynx. Remove the sunfreeware repository.

* *pfexec pkg uninstall SUNWgnu-mc*
* *pfexec pkg unset-authority sunfreeware*

The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact