1826204 Members
2974 Online
109691 Solutions
New Discussion

GNU Tar

 
SOLVED
Go to solution
Regina Mitchell
Frequent Advisor

GNU Tar

I'm trying to install third party software FTPS Wrapper. I have installed GNU Tar as a required but I am still having problems with the FTP Wrapper install. Per the Vendor I need to do the following:
It looks like GNU tar is not the default "tar" in the path. Can you set your path to have gnutar in front of standard tar? If that doesn't work, try editing the secureftp installer and change the order of the PATH variable to reflect GNU tar's loaction first.

How do I do put gnutar in front of standard tar? OS is HPUX11.i.
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: GNU Tar

Shalom Regina,

You can bypass the PATH changes.

tarpath=$(whence tar)
mv $tarpath $tarpath.arch
ls -s $tarpath

What I am doing is finding the old tar, renaming it and putting a soft link from what was the old tar to the new tar.

This methodology may break tar scripts.

So

whence tar
echo $PATH
re-arrange the PATH variable, usually set in /etc/profile and or .profile to put the gnu tar in front of the old tar.

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
DCE
Honored Contributor

Re: GNU Tar



You modify your path statement in either /etc/PATH or in your local .profile so that the gnutar directory is listed before the directory that contains the HPUX tar (usually /bin)

If you are interested here is the link to download the HP wrapper add -in
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=TCPWRAP
Regina Mitchell
Frequent Advisor

Re: GNU Tar

Thanks for your replies. I will try them in a short while. Your replies are very similar to what I'm finding out from other sources. Thanks! I'll reply with what worked.
Regina Mitchell
Frequent Advisor

Re: GNU Tar

I did this in root's .profile:

PATH=/usr/local/bin:$PATH:/sbin:/home/root

/usr/local/bin is where gnu tar is
DCE
Honored Contributor

Re: GNU Tar



Don't forget to export the PATH variable as well............