CustomIPSPackageDemo

Custom IPS Package Demo (10 minutes)

Description

This demo introduces creating custom IPS packages and uploading them to the IPS server.

OpenSolaris Versions Supported

2008.11 or newer.

Points to Hit

  • It is easy to create new IPS packages.
  • It is easy to create your own IPS repository and publish it on the internet.

Demo Prep

  • Make sure you have the most up-to-date version of the ipkg package.
  • Make sure the /var/pkg/repo is empty before starting the depotd daemon (you can delete the repo directory completely, it will get recreated).
  • Prepare scripts from the commands that are written below so that you don't have to type the IPS commands. Always explain the script first and then run it to show building of the package and uploading it to the IPS server.

Gotchas

None known.

Demo

  • Start the depotd daemon by running:

/usr/lib/pkg.depotd -p 10000

  • Keep the terminal with daemon running open, you can show the info messages as you use IPS commands.
  • Create some files in your home directory by running:

mkdir myrepo
cd myrepo
touch file1.txt
touch binary
ls -la

  • We will use these files as a sample package and upload them to the package repository. Run following commands:

eval `pkgsend open my_package@1.0-1`
pkgsend add file binary mode=0555 owner=root group=bin path=/opt/my_package/binary
pkgsend add file file1.txt mode=0550 owner=root group=bin path=/opt/my_package/file1.txt
pkgsend add set name=description value="Example Package"
pkgsend close

  • Open the terminal with depotd running and show the info messages.
  • Open a web browser and go to following URL to show the published packages:

http://localhost:10000

  • Click on the my_package package to show it's details.
  • You can also show installing the package by running:

pkg set-authority -O http://localhost:10000 localhost
pkg authority
pkg install my_package

  • Now browse the /opt/my_package directory and show the contents. Explain how the ownership and access rights to the files have changed compared to original files.
  • Mention that it is also possible to install the package into a custom image created in any directory on your disk instead of installing it into the main IPS image that the OS is using.

Demo Cleanup

  • Stop/kill the depotd daemon.
  • Delete contents of /var/pkg/repo.
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


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