How to clear patch database on Solaris 10?
01/12/2017 14:54
Hi, I have a very strange situation on my x86: I have had a Solaris 10 installation there with all the latest patches (including all the stuff from the time that smpatch(1M) used to work fine), and for the reasons you don't want to know, I have installed Solaris 10 GA on top of it from a DVD using upgrade option. Surprisingly enough, upgrade went fine, but my real surpise came when I did smpatch update It downloaded some 25 patches and installed it, but e.g kernel patch was not amongst these. I couldn't start updatemanager since it was complaining about /usr/lib/embedded_su not being found: that one should have been installed in a patch 119575-02, but neither smpatch nor patchadd want to install it. Anyway, back to kernel patch: I have downloaded 118844-08 (kernel patch for Sol 10 x86), but it can't be installed since patchadd claimed that it has already been installed on the system. However, neither uname(1) nor showrev(1M) confirm that. Downloading and installing recommended patch cluster for Solaris 10 x86 installs only one patch, for everything else it claims it has already been installed. So, what do I do now? How do I convience my system that I _really_ haven't installed these particular patches? TIA, Dragan P.S. Where does one now finds what particular return code of patchadd mean? In previous versions of Solaris, /usr/sbin/patchadd was a Korn shell script with a comment at the top with return code list, but the new version is a binary ...

-- Dragan Cvetkovic, To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer !!! Sender/From address is bogus. Use reply-to one !!!

Source is Usenet: comp.unix.solaris
Sign in to add a comment

Answer score: 5
01/12/2017 14:54 - Casper H.S. Dik <Casper.Dik@Sun.COM> writes: Hm, didn't know that. Would be interesting to try.

Thanks.

Dragan -- Dragan Cvetkovic, To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer !!! Sender/From address is bogus. Use reply-to one !!!

Source is Usenet: comp.unix.solaris
Sign in to add a comment

Answer score: 5
01/12/2017 14:54 - david@smooth1.co.uk writes: With a single disk? Tricky.

Bye, Dragan -- Dragan Cvetkovic, To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer !!! Sender/From address is bogus. Use reply-to one !!!

Source is Usenet: comp.unix.solaris
Sign in to add a comment

Answer score: 5
01/12/2017 14:54 - Casper H.S. Dik <Casper.Dik@Sun.COM> writes: [snip] Hm. Sifting through a bunch of packages is not going to be fun :-( [snip] Doesn't sound promissing, does it? I guess I better do a proper installation with preserving other slices instead of upgrading (I have /usr/local and /export/home on separate slices just for that reason).

Any chance of fixing that bug you mentioned? Any bugid I can look at? Thanks.

Dragan -- Dragan Cvetkovic, To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer !!! Sender/From address is bogus. Use reply-to one !!!

Source is Usenet: comp.unix.solaris
Sign in to add a comment

Answer score: 5
01/12/2017 14:54 - Two words....Live Upgrade...


Source is Usenet: comp.unix.solaris
Sign in to add a comment

Answer score: 5
01/12/2017 14:54 - Dragan Cvetkovic <me@privacy.net> writes: No problem at all. Just make alternate boot a different partition.

Casper -- Expressed in this posting are my opinions. They are in no way related to opinions held by my employer, Sun Microsystems.

Statements on Sun products included here are not gospel and may be fiction rather than truth.


Source is Usenet: comp.unix.solaris
Sign in to add a comment

Answer score: 5
01/12/2017 14:54 - Dragan Cvetkovic <me@privacy.net> writes: Apparently some remnants remain in /var/sadm/pkg/*/pkginfo You will need to remove the vestiges of the installed patches from there.

In the upgrade process, there are several ways in which packages are updated: - pkgrm + pkgadd - pkgadd (overwriting because of a different version or because it is forced) - left alone (same version) ls -lcrt /var/sadm/pkg may reveal that some package have not been reinstalled; those packages will contain indications that patches have been installed.

It's a long standing bug in the patch system that it will assume a patch is fully installed if it's installed for only one of the packages it affect; it really ought to check all packages.

In all, it's a minor miracle your system still works.

Casper -- Expressed in this posting are my opinions. They are in no way related to opinions held by my employer, Sun Microsystems.

Statements on Sun products included here are not gospel and may be fiction rather than truth.


Source is Usenet: comp.unix.solaris
Sign in to add a comment

eDiscover
Helpforce eDiscover provides technical articles updated each dayHelpforce eDiscover RSS feed contains the latest technical articles in RSS
Click the logo to go back to the main page
Search eDiscover
  
Categories

Click an icon to go to that category

Helpforce eDiscover contains articles about Microsoft Windows Helpforce eDiscover contains articles about Apple products and MacOS Helpforce eDiscover contains articles about Linux and POSIX operating systems Helpforce eDiscover contains articles about Helpforce Helpforce has a large variety of technical information and articles for you to read Helpforce eDiscover contains articles about databases, MYSQL, SQL Server Oracle Helpforce eDiscover contains articles about Java, JVM and the JRE Helpforce eDiscover contains articles about the QNX operating system Helpforce eDiscover contains articles about Oracle Solaris and Open Solaris Helpforce eDiscover contains articles about RISC OS, Acorn and the BBC Micro Helpforce eDiscover contains articles about Amiga and AmigaOS

Type your comment into the box below