Operating System - HP-UX
1827448 Members
5819 Online
109965 Solutions
New Discussion

Re: gzip default location

 
SOLVED
Go to solution
Binu_5
Regular Advisor

gzip default location

Hi,

Need to know if gzip comes by default along with OS in hpux? If so is this the default location?

/usr/contrib/bin/gunzip
10 REPLIES 10
Arunvijai_4
Honored Contributor
Solution

Re: gzip default location

Yes, You are correct. it comes with the Core-OS .
# swlist -l file |grep -i gunzip
SW-DIST.GZIP: /usr/contrib/man/man1.Z/gunzip.1
SW-DIST.GZIP2: /usr/contrib/bin/gunzip

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Alex Lavrov.
Honored Contributor

Re: gzip default location

I think it's /usr/bin/

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Muthukumar_5
Honored Contributor

Re: gzip default location

Yes. Based on depot configuration it will be located there. You can do one more thing as,

# ln -s /usr/contrib/bin/gunzip /usr/bin/gunzip

so that it will refer that.

Or else setup $PATH variable as,

/etc/PATH
/usr/contrib/bin

or

export PATH=$PATH:/usr/contrib/bin

for searching.

hth.
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: gzip default location

Alex, It's /usr/conrib/bin/gunzip on both 11.11 and 11.23. I am not sure it belongs to /usr/bin .

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: gzip default location

It is purly based on depot psf file. You can view it as,

# swlist SW-DIST.GZIP

If you want to you can set alias or ln. Path setting will be included with $PATH.

hth.

Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: gzip default location

That's correct, It is based on PSF file, But nowhere in HP-UX 11.11 and 11.23, you can find gunzip at /usr/bin unless or untill you manually created a sym link.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
R N Sharma
New Member

Re: gzip default location

Hi Binu


You can find the location of any command by using which or whereis commands
for example

if you want to see the location of gunzip command. do as follows

#which gunzip
/usr/contrib/bin/gunzip

#whereis gunzgzip
gzip: /usr/contrib/bin/gzip /usr/contrib/man/man1.Z/gzip.1ip


HTH

Raghunandan
Muthukumar_5
Honored Contributor

Re: gzip default location

arun,

11.11 and 11.23 is giving default location of /usr/contrib/bin/gunzip only ;). Check it out. which gunzip or whereis gunzip.

May be it is copied or linked.

hth.

Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: gzip default location

Thats what i meant Muthukumar, Its in /usr/contrib/bin/

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
VAS_1
Frequent Advisor

Re: gzip default location

I did find an upgrade from the HP-UX archive center in Utah that installs it under usr/local:

# grep -E 'title|^directory|^revision' INDEX
revision 1.3.5
title "gzip"
directory /usr/local

Victoria