Operating System - HP-UX
1833696 Members
3728 Online
110062 Solutions
New Discussion

Re: Software Distribution System API?

 
Lev Assinovsky
Frequent Advisor

Software Distribution System API?

Hi!
I need to get info about installed software
right from C-program.
Does anybody knows if such an API exist?
OS: HPUX 11.00

Sincerely,
7 REPLIES 7
Mark Greene_1
Honored Contributor

Re: Software Distribution System API?

Check out man 4 sd and man 5 sd. There's also a developer's kit that may contiain more info.

mark
the future will be a lot like now, only later
Lev Assinovsky
Frequent Advisor

Re: Software Distribution System API?

Mark!
Thanks for your responce!
But I need something different.
I would like to have a function similar
to swlist command: void swlist(const char * product_name, const char * attribute, char * response);
Of course my example is too simple, the real function might be more complicated.
Shortly speaking I need a library with the functions described above.
Does such a library exist for HP-UX 11.xx?
Mark Greene_1
Honored Contributor

Re: Software Distribution System API?

Lev,

I don't know if HP has released the info you are wanting. You can look around here:

http://software.hp.com/SD_AT_HP/

for more information about Software Distributor. You can also checkout the man page for swpackage, there more file and directory information to be had there. You can always call the individual command-line executables from your C program. Not very efficient I know, but doable.

mark
the future will be a lot like now, only later
Bruno Ganino
Honored Contributor

Re: Software Distribution System API?

This is all the software available
http://hpux.connect.org.uk/hppd/auto/summary_all.html
HTH
Bruno
Torino (Turin) +2H
Jeff Schussele
Honored Contributor

Re: Software Distribution System API?

Hi Lev,

In 11i SD libs are in

/usr/lib/X11/app-defaults
/usr/lib/sw/mx
/usr/lib/sw/ui
/usr/lib/sw/ui/C

I don't think it changed much from 11.0

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Lev Assinovsky
Frequent Advisor

Re: Software Distribution System API?

Seems, I have to execute external command (swlist) from my C-program.
Thank you for your care.
Lev Assinovsky
Frequent Advisor

Re: Software Distribution System API?

Jaff, I have just a /usr/lib/sw/ui which is
UIMX related staff I believe.