- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- committing and uncommitting patches on hpux 11i
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
Forums
Discussions
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
12-06-2005 04:37 PM
12-06-2005 04:37 PM
Is there a way for committing and uncommitting a patch on hpux 11i ?
On AIX unix a patch can be uncommitted if found unsuitable.
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 05:03 PM
12-06-2005 05:03 PM
Re: committing and uncommitting patches on hpux 11i
I f I understand you correctly, uncommit a patch in HPUX called uninstall and can be done by the command
swremove PATCH_NAME.
This fully deletes the patch from computer, so if you want to "commit" or install it, you need to have its depot and install by
swinstall patch.depot
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 05:25 PM
12-06-2005 05:25 PM
Re: committing and uncommitting patches on hpux 11i
# swmodify -x patch_commit=true PATCH
Refer more on swmodify man page.
-Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 05:33 PM
12-06-2005 05:33 PM
Re: committing and uncommitting patches on hpux 11i
http://docs.hp.com/en/B2355-90789/ch03s02.html
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2005 12:04 AM
12-07-2005 12:04 AM
Re: committing and uncommitting patches on hpux 11i
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2005 12:21 AM
12-07-2005 12:21 AM
Re: committing and uncommitting patches on hpux 11i
swmodify and swremove options can be used to uncommit the pathces if found unsuitable.
Regards
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2005 12:24 AM
12-07-2005 12:24 AM
SolutionOnce a patch is committed it cannot be removed. As noted, to commit you can use 'swmodify'. If a patch hasn't been committed, you can use 'swremove' to remove it.
If you have a stable system, for instance where a set of patches has been applied, there are no problems for several months, and you want to apply another, large set of patches, it is often desireable to "draw-a-line" by committing all patches to form a new baseline:
# swmodify -x patch_commit=true \*
As noted, a less drastic approach is to use 'cleanup' to leave at least one level of predecessor patches to which you can rollback.
Another advantage to committing patches is that you remove the rollback information from '/var/adm/sw' and regain considerable disk space. Balance this, however, against the ability to rollback by not having committed all members of a patch chain.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2005 08:05 PM
12-08-2005 08:05 PM
Re: committing and uncommitting patches on hpux 11i
Actually, what is the command to apply patch in uncommitted mode ?
Thanks,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2005 09:38 PM
12-08-2005 09:38 PM
Re: committing and uncommitting patches on hpux 11i
Patches are normally applied but not committed unless you explicitly act to commit them as I noted above. That is, a roll-back image, which is a copy of any previous patch or software, is kept in the '/var/adm/sw/save' directory).
If you look at the text notes of any patch in the ITRC Patch Database, you will see something like this, for example:
/*
Run swinstall to install the patch:
swinstall -x autoreboot=true -x patch_match_target=true \
-s /tmp/PHCO_32438.depot
By default swinstall will archive the original software in /var/adm/sw/save/PHCO_32438. If you do not wish to retain a copy of the original software, include the patch_save_files option in the swinstall command above:
-x patch_save_files=false
WARNING: If patch_save_files is false when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature.
*/
You can read more about patch 'state' here:
http://www.docs.hp.com/en/5991-2722/5991-2722.pdf
Regards!
...JRF...