Thursday, April 30, 2009

Setup pkgutil in Solaris

 Step 1 - Install pkgutil


 


 Solaris 8 & 9 Users : You need to fetch the correct pkgutil package from Network.com thus : 




      md5 = 7263f7010b15899bcf9bb7014c43ff7b
      sha1 = 0e9b56018796718b824de0c4a1cdf4fccb4a4087
      sha256 = d5d3746c0e981b69a102862352b1db7510281a94c2b82c1003a2f0a15f3b1e61


      md5 = 029b42a0dc9653959bf29b6f68dec8d4
      sha1 = b67bf038ca4b33a18e11e7bf7dee48f62b4b6ce9
      sha256 = 862513f65d143fd87e8d0dc2db611a2f7a587d94d00f2e3b25b04d958666ab27

#pkgadd -d pkgutil_i386.pkg


# mkdir /etc/opt/csw


# cp -p /opt/csw/etc/pkgutil.conf.CSW /etc/opt/csw/pkgutil.conf


 


Solaris 10 & Nevada or OpenSolaris™ Users : 


#pkgadd -d http://blastwave.network.com/csw/pkgutil_`/sbin/uname -p`.pkg


# mkdir /etc/opt/csw


# cp -p /opt/csw/etc/pkgutil.conf.CSW /etc/opt/csw/pkgutil.conf


 


Step 2 - Fetch the Software catalog


#/opt/csw/bin/pkgutil –catalog 


 


 Step 3 - Security First !


#/opt/csw/bin/pkgutil –install gnupg textutils 


## cd /tmp


#/opt/csw/libexec/pkgutil/wgethttp://www.blastwave.org/gpg_key.txt


# /opt/csw/bin/gpg –import gpg_key.txt


1) Verify that you have the key. Use the gpg –list-keys command :


# /opt/csw/bin/gpg –list-keys.


2 ) Mark the key as being trusted for a given purpose. In this case you want to trust the signed software catalogs from Blastwave. To do this you need to edit the key and mark it as being trusted thus : 


# /opt/csw/bin/gpg –edit-key A1999E90


Command> Trust


Your decision? 5


Do you really want to set this key to ultimate trust? (y/N) y


Command> quit


3) Lastly you need to modify the pkgutil configuration to actually use this GPG key as well as to verify the MD5 hashes of the software packages. Edit the pkgutil.conf file that you copied into /etc/opt/csw such that the lines related to GPG and MD5 are not commented out. Your pkgutil.conf should look like so : 


use_gpg=true


use_md5=true


# /opt/csw/bin/pkgutil –catalog 


#export PATH=/opt/csw/bin:/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin


 


#pkgutil -a                                         list available package


#pkgutil -i     packagename    install package


 


If you find any difficutly then refer below link


http://www.blastwave.org/howto.html

No comments:

sanjay's shared items

My Blog List