- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: swremove <package name> does not remove Direct...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
тАО03-18-2008 01:01 AM
тАО03-18-2008 01:01 AM
swremove <package name> does not remove Directory structure
Also, what is the effect of running swremove as root & alternate root(sudo)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2008 02:20 AM
тАО03-18-2008 02:20 AM
Re: swremove <package name> does not remove Directory structure
If files unrelated to the application have been created in the structure, user sessions, or file handles are open, swremove could leave behind the directories.
swremove must be run as root.
If you grant sudo privileges to other users they are running swremove as root. You may need to grant other programs in the sudo configuration. Check logs after a test to see how that works out.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2008 04:08 AM
тАО03-18-2008 04:08 AM
Re: swremove <package name> does not remove Directory structure
Directories with no files inside.
-r :(Option) to be useed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2008 07:44 AM
тАО03-18-2008 07:44 AM
Re: swremove <package name> does not remove Directory structure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2008 07:26 PM
тАО03-18-2008 07:26 PM
Re: swremove <package name> does not remove Directory structure
swremove $pkgname
where $pkgname is merely the name of the package (vasclnt, vasgp, vasyp, vasproxy, etc.).
As an aside, note that to install or upgrade, we did this:
swinstall -s $hp_pkgpath $pkgname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2008 07:48 PM
тАО03-18-2008 07:48 PM
Re: swremove <package name> does not remove Directory structure
If you want product directories to be removed during swremove, you need to add a postinstall script that will take care of cleaning up the directories you own.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2008 10:12 PM
тАО03-18-2008 10:12 PM
Re: swremove <package name> does not remove Directory structure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2008 10:36 PM
тАО03-18-2008 10:36 PM
Re: swremove <package name> does not remove Directory structure
During swremove, the files are removed from the system location. Once this is completed, the postremove control script is run. It can be used to clean up things after the product removal, like directories.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2008 10:50 PM
тАО03-18-2008 10:50 PM
Re: swremove <package name> does not remove Directory structure
Regards
Sharan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2008 09:13 AM
тАО03-19-2008 09:13 AM
Re: swremove <package name> does not remove Directory structure
I think Binu just made a typo. A postinstall script wouldn't make sense for swremove.
Otherwise his reply to this question is spot on.
http://docs.hp.com/en/B2355-90754/index.html
http://docs.hp.com/en/B2355-90754/ch11s01.html