- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Can it be done?
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
Forums
Discussions
Discussions
Discussions
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
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
02-06-2003 02:13 PM
02-06-2003 02:13 PM
I have an older system with software on it I would like to package. Not sure if I can.
Is it possible to take an installed software bundle and rebundle it?
If so, what would get me started?
Thanks,
Kel
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 02:25 PM
02-06-2003 02:25 PM
SolutionYes, most of the time you can.
One thing to be careful with is "host customized" stuff i.e if any config files that have host specific info in them or file/dir names containing the hostname.
Do a man on swpackage for details. But essentially you create a psf (Product Specification File) that spells out everything about the pkg you're creating & then run the swpackage to create the pkg. You can then swcopy it to your standard depot.
Here's a good link for the whole process
http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90154/B2355-90154_top.html&con=/hpux/onlinedocs/B2355-90154/00/00/49-con.html&toc=/hpux/onlinedocs/B2355-90154/00/00/49-toc.html&searchterms=swpackage&queryid=20030206-151043
Good Luck,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 02:27 PM
02-06-2003 02:27 PM
Re: Can it be done?
Have a look at 'swpackage'. For instance, to copy a depot of software to tape you can do:
# swpackage -x target_type=tape -s /tmp/depot \* @ /dev/rmt/0m
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 02:28 PM
02-06-2003 02:28 PM
Re: Can it be done?
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 02:30 PM
02-06-2003 02:30 PM
Re: Can it be done?
You can use 'swpackage'. Besides there being a man page for it, there should be loads of postings on it.
You can the on-line document here:
http://docs.hp.com/hpux/onlinedocs/B2355-90754/B2355-90754.html
Cheers
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 02:33 PM
02-06-2003 02:33 PM
Re: Can it be done?
It can be done with some patience. Most of the packages come with preinstall, postinstall,checkinstall etc., that you find them under /var/adm/sw/products/SOFTWARE/product.
You can get the individual files by doing
swlist -l file SOFTWARE
This will display each file in the SOFTWARE attached to each product inside it.
Take a list of them and take copies of *install and *remove scripts from the /var/adm/sw... directory and create a psf file.
Once you have the psf file, you can use swpackage command to package it up.
Look at man swpackage and man 4 swpackage to get started.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 02:48 PM
02-06-2003 02:48 PM
Re: Can it be done?
Chris - In other words, I have old software that we need to use. We don't have it, except already installed in a system. Rather than just rely on system backup, I would like to have it in our depot as a failsafe in case we need to reconfigure the system.
Everyone else - I have used swpackage a number of times in the past to generate customized patch bundles. So basically, if I genereate a .psf file with a list of all of the files in it, as well as the other variables, I can package that up? (There is no hostname customization to my knowledge. 99.9% sure)
There are a couple of related bundles I would like to copy, one has a kernel driver in it. Will this package properly if I generate the list right?
Thanks,
Kel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 02:56 PM
02-06-2003 02:56 PM
Re: Can it be done?
Sure can.
For that product that adds a driver to the kernel, in the fileset definition you'll be using
is_kernel=true
is_reboot=true
To force the kernel build & reboot.
It's a little more complex that a normal package - but certainly can be done.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 02:56 PM
02-06-2003 02:56 PM
Re: Can it be done?
As I mentioned before, you need to capture the sw scripts from /var/adm/sw/products/(software)/sub-products/ directory. configure and postinstall scripts take care of adding the drivers into kernel. You will need to specify if the system needs a kernel rebuild in your psf file.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 03:06 PM
02-06-2003 03:06 PM
Re: Can it be done?
I have read the SD-UX doc, but didn't really equate it to pulling installed filesets back off a system.
I will definitely invest a bit of time and patience for the long term piece of mind. This ol' system has given us some scares in the past. I would like the added insurance.
Points will follow, it may take a day or two.
Kel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2003 03:09 PM
02-06-2003 03:09 PM
Re: Can it be done?
; )