Upgrade scenarios of a package in Solaris

Hi,

I am upgrading a package on Solaris.

After upgradation, it changes it name to a <name>.2
eg. XYZ -> XYZ.2
XYZ no longer exists in pkginfo

Working on Solaris 8 sparc

Any idea's what's happening here?

Thanks

chk with Dtrace utility to understabd the backend system calls..it will give a gud overview.

Solaris official packages are normally upgraded by patches.

Otherwise, you remove the old package and install the new one. Having a package instance with a .2 suffix means the remove wasn't properly done.

dtrace only works on solaris 10! not solaris 8...

It properly upgraded the package with .2 suffix

Is this a general Solaris behaviour or something went wrong here?

Please clarify what you did.
You do not upgrade a package by just installing a newer version. If a package supports multiple instances and you install a new version, the standard behaviour is what you observe.

I installed a newer version of that package.

During installation, it said an earlier version exists, do you want to upgrade.

I said Yes.

Now it created XYZ.2 and XYZ was removed.

What is the other way to upgrade a package?

I answered to that in my first reply: http://www.unix.com/sun-solaris/47726-upgrade-scenarios-package-solaris.html\#post302154183

Anyway, the way you upgraded is preferred if some other packages depend on the one you want to upgrade.

The instance suffix is no big deal.

Yes, this is the case, a lot of packages depend on that.

The suffix is a problem, as the original XYZ no longer exists and a lot of scrips check for XYZ

You should then fix the scripts:
eg:

pkginfo SUNWcsu.*

The scripts are not owned by us.

Anyway, thanks for the help.