Operating System - HP-UX
1823671 Members
3077 Online
109663 Solutions
New Discussion юеВ

Depot from installed software?

 
SOLVED
Go to solution
Jim Mallett
Honored Contributor

Depot from installed software?

Is it possible to make a depot from software that you have already installed? I downloaded and installed a product last year that I'm going to need to re-install after an OS upgrade, problem is that the initial download depot was corrupted at some point.
I'm about to read the man for swcopy/swpackage, but I thought somebody might have some insight into this.

Thanks....
Jim Mallett
Hindsight is 20/20
2 REPLIES 2
Bill McNAMARA_1
Honored Contributor
Solution

Re: Depot from installed software?

if you go to the /var/adm/sw/products/
dir, find the software identifier (directory)
find the INDEX and INFO file in that tree, and you'll have the file list + perms delivered by that patch.
After that to create the depot again you need to create a .psf and use swpackage. Not easy, but maybe your only method.. if you can't get the original depot again.
Can you not just tar up all the files ;) or do you _really_ need them to show up on an swlist?

Later,
Bill
It works for me (tm)
Pete Randall
Outstanding Contributor

Re: Depot from installed software?

Jim,

You should be able to just copy the software as is, rather than re-packaging. I do something like this:

mkdir /opt/some_software
cd /nfs/old_server/opt/some_software
find . -print |cpio -pdumxl /opt/some_software


Pete

Pete