1832988 Members
2288 Online
110048 Solutions
New Discussion

Re: Can it be done?

 
SOLVED
Go to solution
Kelli Ward
Trusted Contributor

Can it be done?

Hi All,
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
The more I learn, the more I realize how much more I have to learn. Isn't it GREAT!
10 REPLIES 10
Jeff Schussele
Honored Contributor
Solution

Re: Can it be done?

Hi Kel,

Yes, 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
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
James R. Ferguson
Acclaimed Contributor

Re: Can it be done?

Hi Kelli:

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...

Chris Vail
Honored Contributor

Re: Can it be done?

Your message isn't entirely clear. Is this HP or 3rd Party software that was installed as a bundle? If so, you might still have the session log from the original swinstall. If you do, you can use it to guide you to the files that you need to create in your new bundle. Search this forum for threads about swcopy for details.


Chris
Michael Tully
Honored Contributor

Re: Can it be done?

Hi Kel,

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
Anyone for a Mutiny ?
Sridhar Bhaskarla
Honored Contributor

Re: Can it be done?

Hi Kel,

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
You may be disappointed if you fail, but you are doomed if you don't try
Kelli Ward
Trusted Contributor

Re: Can it be done?

Hi all,

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
The more I learn, the more I realize how much more I have to learn. Isn't it GREAT!
Jeff Schussele
Honored Contributor

Re: Can it be done?

Hi (again) Kel,

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
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Sridhar Bhaskarla
Honored Contributor

Re: Can it be done?

Hi Kel,

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
You may be disappointed if you fail, but you are doomed if you don't try
Kelli Ward
Trusted Contributor

Re: Can it be done?

Hi again all,
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
The more I learn, the more I realize how much more I have to learn. Isn't it GREAT!
Kelli Ward
Trusted Contributor

Re: Can it be done?

or ten...
; )
The more I learn, the more I realize how much more I have to learn. Isn't it GREAT!