Thursday Aug 21, 2008

  • Remove Packages from the Repository

Working with IPS ,I realize there is no direct way to remove the packages from the Repository.

# cd /var/pkg/repo/catalog
Edit the catalog file and remove the packages to be removed .

# /usr/lib/pkg.depotd --rebuild 

This refreshes the URL with right Statistics Information as well .

  • Publish SVR4 packages to the IPS Repository
# cd /packages 
# pkgsend -s <repository url> send <SVR4 package name> 
EXAMPLE: pkgsend -s http://pkg.opensolaris.org/webstack send SUNWmysql5u

Wednesday Aug 20, 2008

The Image Packaging System software is a network-centric packaging system written in Python.

On a x86 system with install OS as snv_95 ,I built the IPS respository using the below steps .

# hd clone ssh://anon@hg.opensolaris.org/hg/pkg/gate pkg-gate
# cd pkg-gate
# make install
 
Install the packages mainly SUNWipkg & SUNWchirpy-python from the packages
directory created one level up.
You could leave the GUI packages if you choose not to install the GUI .

# /usr/lib/pkg.depotd -d repository_directory -p port_value

EXAMPLE: /usr/lib/pkg.depotd -d /export/home/user1/repository1 -p 9000

This starts the pkg.depotd server at port 9000 .Default port number 80. To confirm that the repository has been created, open your browser and type the following command http://localhost:port_value

If repository directory is not specified ,by default repository is built in /var/pkg/repo

Check to see how the repository looks like

 
[root@sa64-v20zc-blr03]/var/pkg/repo: ls
catalog  cfg_cache   file   index   pkg   trans   updatelog

This blog copyright 2009 by Sunanda Menon