- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: hp-ux sd swremove older version inside preinst...
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2003 01:35 AM
04-04-2003 01:35 AM
hp-ux sd swremove older version inside preinstall ?
How can I have swinstall automatically performing an swremove of an older version of the same product ? Can I just place the appropriate swremove command inside a preinstall script for the newer version ?
Thanks in advance for any help.
Peter Jansen, BIS, Basel, Switzerland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2003 01:54 AM
04-04-2003 01:54 AM
Re: hp-ux sd swremove older version inside preinstall ?
I think you need a wrapper script around your swinstall which checks for the older version before running swinstall, then if found does an swremove of the old version then runs swinstall.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2003 02:06 AM
04-04-2003 02:06 AM
Re: hp-ux sd swremove older version inside preinstall ?
I havent tried this but i don't thnk this will work
bcos typically only one instance of the sw* products should run at a time. When started they create a lock which prevents other instances from coming up.
so swremove cannot be run when swinstall is running.
Why would you need to swremove? Unless you have new binaries with new names and that cause a problem after upgrade, you shouldn't need to swremove.
do this - if your upgrade is a full upgrade (unlike a patch) remove the entire directory structure, after stopping the processes.
Hope that helps.
- ramd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2003 02:10 AM
04-04-2003 02:10 AM
Re: hp-ux sd swremove older version inside preinstall ?
I think, the good way to do this would be a preinstall script, that removes the files explicitely and then calls the control_utils function "IPD_delete_ancestors".
Of course you would need to take care to maintain the "ancestor" tags carefully in your depots.
#! /sbin/sh
typeset -r UTILS="/usr/lbin/sw/control_utils"
if [[ ! -f $UTILS ]]
then
echo "ERROR: Cannot find $UTILS"
exit 1
fi
. $UTILS
exitval=$SUCCESS
#########################
# remove obsolete files/dirs
#
rm -rf ...
#########################
# remove ancestor filesets
#
IPD_delete_ancestors
exit $exitval
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2003 02:49 AM
04-04-2003 02:49 AM
Re: hp-ux sd swremove older version inside preinstall ?
The second suggestion to just not bother with an swremove and construct my .psf so that it can just be swinstalled over the older one is one that can certainly leave a working newer version in place, but I'm worried what will happen to the swinstall database (IPD), especially in the longer run.
The third suggestion mentions some concepts that seem very interesting, but that I am too unfamiliar with and know too little about. I have doubts that I'll not wreck the IPD.
Thanks to all the helpers so far !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2003 03:41 AM
04-04-2003 03:41 AM
Re: hp-ux sd swremove older version inside preinstall ?
Have a look at:
http://docs.hp.com/hpux/pdf/B2355-90754.pdf
This doc explains lots of useful things around software packaging.
Best regards...
Dietmar.