This discussion is archived
1 Reply Latest reply: Sep 4, 2013 8:14 AM by heider RSS

PKG: Question about upgrading package

user10501597 Newbie
Currently Being Moderated

Hi,

 

To install a package we use pkgadd, to remove an installed package we use pkgrm. But how about upgrade or update an installed package?

 

From the official document from Oracle "Application Packaging Developer's Guide" on Application Packaging Developer's Guide I couldn't find a satisfied solution.

 

From this site Webmin I find there are two alternatives:

 

1.

Edit the /var/sadm/install/admin/default

 

or

2.

Remove the installed packaghe and install the new version again.

 

I wonder if there is another way such as pkgupdate?

  • 1. Re: PKG: Question about upgrading package
    heider Newbie
    Currently Being Moderated

    Solaris 10 uses the patching method (patchadd) to update packages. Solaris 11 no longer uses patching and uses the package update (pkg update) method. I assume you are using Solaris 10.

     

    If you are attempting to update a Sun/oracle produced package, you should be able to download the package from the oracle support site and install it using "patchadd <patch number>"

     

    For updating 3rd party applications, that's up to the application creator on whether or not they created a patch. If there is no patch, then you will need to backup your application configuration data, remove the package, install the new package, and restore the config data.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points