Operating System - HP-UX
1833540 Members
2816 Online
110061 Solutions
New Discussion

Re: removing old software from HP-UX 11

 
SOLVED
Go to solution
twtandigi.com.my
Frequent Advisor

removing old software from HP-UX 11

Hi,

This sounds quite confusing...
Let me put a scenario to help clear the picture.
1. I have a system installed with DBI version 1.1.3, MD5 1.7, DBD Oracle 1.03 and perl 5.6

2. I have to upgrade to this programs to the latest version.
(so far perl has a '.depot' from HP)

what should i do?

how can i remove the programs that have been previously installed on HP-UX?
how can i make sure that HP-UX don't link the old files to the new program that i have installed on the system.
how can i remove the links (symbolic link)?

seriously confused

calvin
5 REPLIES 5
Robert-Jan Goossens
Honored Contributor

Re: removing old software from HP-UX 11

Hi Calvin,

Probably the previous version are not installed with swinstall, but you could check the output from ( # swlist -l product | grep -i perl )

If they are not installed with swinstall you can remove them with the rm command and remove the PATH variable from your default PATH. If they are installed with swinstall, use swremove to remove them from your system.

A good site for downloading perl etc. is Merijn's/Procura's HP-UX software for ITRC members, link is below.

http://mirrors.develooper.com/hpux/

Hope this helps,
Robert-Jan
twtandigi.com.my
Frequent Advisor

Re: removing old software from HP-UX 11

hi Robert-Jan Goossens,

beside the website for perl,
what other website can i download hp-ux compatible software?



Robert-Jan Goossens
Honored Contributor
Steven E. Protter
Exalted Contributor
Solution

Re: removing old software from HP-UX 11

swlist -l product | grep -i

this gets you the name you want

swremove

swinstall -s \*

the <> are for examples, not to be typed in.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
H.Merijn Brand (procura
Honored Contributor

Re: removing old software from HP-UX 11

RJ summed it up quite nicely.

swinstall'ed modules (from depot's) can be tracked like that, but prebuilt binaries not from depot's (like my ports) cannot.

FYI My binaries are shipped with the most recent DBI available at the time of build.

For HP-UX with Oracle, *PLEASE* use DBD-Oracle-1.14 or up. DBD-Oracle-1.15 is currently the most recent.

DBI will be released with a new version soon now I think, but it will address not bugs, but it will cover the features with tests much better and probably will have some improved docs, but DBI-1.42 will do quite well.

On my site (see RJ's first post), I also explain why my ports do not include DBD-Oracle. But with 1.15 and perl-5.8.4 it is very likely to build out of the box.

One more thing. My ports are all build with GNU gcc, and you need a matching compiler if you are going to extend perl with XS modules, like DBD-Oracle. If you have HP C-ANSI-C, you might consider building perl from scratch, because the cc built binaries still perform slightly better than gcc builds.

The gcc I built my ports with are also available from the site. For 5.8.4 I used GNU gcc-3.4.0

Last point, please remember that for Oracle (or HP-UX in general), you need a MATCHING perl: for 64bit Oracle, you need a 64bit perl, and for Oracle/32, you need a 32bit perl. They can be installed next to eachother, just think about setting $PATH correct. Same for the compiler. There are two: gcc/32 and gcc/64. They simply do not mix

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn