Thursday, June 12, 2008

Package administration in the Solaris:

This article helps in administering the package in the Solaris such as adding, removing, upgrading, patching, getting info, etc. As we already know that in Linux we use rpm and yum commands for installing or removing the packages. But in Solaris, the above said commands are non-functional.

1.Installing a Package:

#pkgadd – used for installing the package, the default installation spool directory is /var/spool/pkg.


#pkgadd –a {admin} – indicate to use the installation administration file specified by admin instead of the default file.

#pkgadd –d {device} – the package to be installed must be copied from the device.

2.Checking a Package:

#pkgchk – used to check the accuracy of the installed files


To check the content of an installed package SUNWbash,
#pkgchk –c SUNWbash

To check the file attribute of an installed package SUNWPython,
#pkgchk –a SUNWPython

3. Retrieving information about Packages:

#pkginfo – to retrieve the information about the s/w package installed in the system,


To get information on the list of fully installed package,
#pkginfo –i

To get information on the list of partially installed package,
#pkginfo –p

To get the information on the selective category, can be retrieved by the category value set in the pkginfo for the attribute values.
#pkginfo –c {category value}

4. Removing a Package:

#pkgrm – to remove the completely or partially installed package

To remove the source package by using the admin specified installation file instead of the default file,
#pkgrm –a {admin}

To remove all the files of the package including those shared by other packages.
#pkgrm –A packagename

To remove the package in the non-interactive mode, the default is the interactive mode,
#pkgrm –n SUNWPython

Hope the above information is useful while dealing with some packages.


91-98414 99143

No comments: