Operating System - HP-UX
1837921 Members
6586 Online
110124 Solutions
New Discussion

Using swmodify to update IPD

 
Milan Stojanovic
Occasional Advisor

Using swmodify to update IPD

Hi,

I am trying to update IPD and insert an entry for the application that is not installed using SD-UX.

The command to do that is
swmodify -s new_fileset_definition

Can somebody suggest what new_fileset_definition
file should look like.

Thanks

Milan
4 REPLIES 4
Cheryl Griffin
Honored Contributor

Re: Using swmodify to update IPD

Here's how to swinstall a "void" fileset, replace void with your application name.

cd /var/adm/sw/products
vi void.psf
Add the following lines to the void.psf file.

product
tag void
fileset
tag void


swpackage -s ./void.psf
swinstall void

Are you wanting this so that you can track what software is installed on the system? If so, alternatively you may be able to package the app differently with swpackage.

Cheryl
"Downtime is a Crime."
Jeff Schussele
Honored Contributor

Re: Using swmodify to update IPD

Hi Milan,

You have to create a psf (Product Specification File) file for swmodify to reference.

See the following for info on how to do this

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90154/B2355-90154_top.html&con=/hpux/onlinedocs/B2355-90154/00/00/32-con.html&toc=/hpux/onlinedocs/B2355-90154/00/00/32-toc.html&searchterms=swmodify&queryid=20020726-095251

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Milan Stojanovic
Occasional Advisor

Re: Using swmodify to update IPD

Thanks,

but when I tried to run swmodify -s test.pfs

cat test.psf

product
tag TEST
fileset
tag test
directory /tmp
file *
end

I am getting error message:

ERROR: You have not specified any software selections. To add the
objects defined in a source Product Specification File (PSF),
you must specify which objects, or specify "*" to select all
objects. See the SD user manual or the swmodify(8) manual
page for more details.

Can you please provide the template for the
"new_fileset_definition" file

Thanks

Mila
Mateja Bezjak
Respected Contributor

Re: Using swmodify to update IPD

Hi Milan,

You are on the right track, but for swmodify command to work on your psf file, you should add the product name at the end of command line:

swmodify -s test.psf TEST

Now if you check the IPD, product TEST and its filesets are added to the INDEX file

Regards,
Mateja