1835413 Members
2643 Online
110078 Solutions
New Discussion

gzip version,

 
MR VILLOT   MR MONTAGNE
Frequent Advisor

gzip version,

Hi,

I want to use gzip r=1.3.1 but I cannot install this version with swinstall.
I have already gzip r=1.2.4 in /usr/contrib/bin
gzip 1.2.4 (18 Aug 93)
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H
Must I remove release=1.2.4 to use r=1.3.1 and how can I do ?

Thank you
Laurent

5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: gzip version,

If version 1.2.4 was installed with swinstall(shows up on swlist), then use swremove to remove it.

If its compiled, find the executable in the /usr or /opt filesystem and rm it. Make sure that location is not on the PATH.

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
MR VILLOT   MR MONTAGNE
Frequent Advisor

Re: gzip version,

the location is in /usr/contrib/bin and it is in the path with another tools.
Can I remove this directory in /etc/PATH whitout problems ?

Laurent
Patrick Wallek
Honored Contributor

Re: gzip version,

I have installed gzip 1.3.1 without any problems. I downloaded the depot from:
http://hpux.connect.org.uk/hppd/hpux/Gnu/gzip-1.3.1/

gzip 1.3.3 is also available:
http://hpux.connect.org.uk/hppd/hpux/Gnu/gzip-1.3.3/
Kevin O'Donovan
Regular Advisor

Re: gzip version,

With regard to removing the /usr/contrib/bin from the /etc/PATH file, I would be more inclined to leave that file alone where possible, depending on how many users are on the system this could have many different consequences for each user.

Instead what I would recommend is for the user you want to use say gzip from another path, add the new directory to the START of the PATH variable in that user's individual .profile (or .cshrc depending on the shell being used).

So to clear that up, beforehand you had a PATH of /asdf/poi:/iouoihjg/oi:/usr/contrib/bin:/anodir/bin, you would add your new directory to the start of that, PATH=/newdir/path:$PATH.

Alternatively, in case that would cause other problems you could simply make an alias for that user to explicitly specify the path to the gzip executable you want to use:
alias gzip /usr/contrib/bin/gzip or
alias gzip /other/dir/bin/gzip

It'd be pretty difficult to tell exactly what effect changing a PATH would have, because of the variety of applications and bin directories from machine to machine.

Hope that helps,
Kevin.
H.Merijn Brand (procura
Honored Contributor

Re: gzip version,

You didn't tell us for what OS version.

You can have multiple gzip version installed simultaniously:

a5:/u/usr/merijn 101 > path -al gzip
89 100777 -rwx 3 merijn 86016 16 Jan 2003 11:20 /pro/bin/gzip
7774 100555 -r-x 3 bin 139264 7 Nov 1997 09:00 /usr/contrib/bin/gzip
a5:/u/usr/merijn 102 > /pro/bin/gzip --version
gzip 1.3.5
(2002-09-30)
Copyright 2002 Free Software Foundation
Copyright 1992-1993 Jean-loup Gailly
This program comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H HAVE_MEMORY_H HAVE_STRING_H HAVE_LSTAT
Written by Jean-loup Gailly.
a5:/u/usr/merijn 103 > /usr/contrib/bin/gzip --version
gzip 1.2.4 (18 Aug 93)
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H
a5:/u/usr/merijn 104 >

As you can see above, there's gzip-1.3.5 already. It's available on my ITRC site: https://www.beepz.com/personal/merijn/ or http://www.cmve.net/~merijn/

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