- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- gunzip tgz problems
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 05:04 AM
тАО06-11-2008 05:04 AM
/usr/contrib/bin/gunzip icu4c-3_6-src.tgz|tar xvf /usr/local/include
getting this error:
tar: usage tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 05:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 05:40 AM
тАО06-11-2008 05:40 AM
Re: gunzip tgz problems
see if this works
#gunzip xxx.tgz|xargs tar xvf
Any way u can do it in 2 commands ;)
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 06:37 AM
тАО06-11-2008 06:37 AM
Re: gunzip tgz problems
/usr/local/include ...
i was able to unzip the file which created a icu4c-3_6-src.tar file, and then i did a 'tar xvf icu4c-3_6-src.tar' and copied the resulting directory into /usr/local/include..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 06:45 AM
тАО06-11-2008 06:45 AM
Re: gunzip tgz problems
Tar achives are either absolute or relative and will restore including their archived paths.
If it is relative the tar will extract into the current directory. cd to change the directory.
And as mentioned, -f is the name of the tar file and in this case will attempt to extract from /usr/local/include which is a directory and not a tar file.
man tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 07:45 AM
тАО06-11-2008 07:45 AM
Re: gunzip tgz problems
a possible better solution:
cd /usr/local/include
/usr/contrib/bin/gunzip < /FULLPATH/icu4c-3_6-src.tgz | tar xf -
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 08:02 AM
тАО06-11-2008 08:02 AM
Re: gunzip tgz problems
Because it's nonsense?.
What, exactly, are you trying to do?
> a possible better solution:
> [...]
Or, depending on what you really want to do,
possibly:
( cd /usr/local/include ; \
gzip -dc valid/path/to/icu4c-3_6-src.tgz | \
tar xf - )
But plopping junk directly into
/usr/local/include sounds like a bad idea, in
general.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 07:25 PM
тАО06-11-2008 07:25 PM
Re: gunzip tgz problems
/usr/local/include
What's in the tarfile? Are the paths relative or absolute?
If you need to change the paths, you can use pax's: -s:old:new:
>Tim: you really cannot redirect the contents of an untar.
Sure you can. It's called pax(1). :-)
Peter: gunzip < /FULLPATH/icu4c-3_6-src.tgz | tar xf -
Right. I typically use gzcat:
gzcat /FULLPATH/icu4c-3_6-src.tgz | tar -xf -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 08:19 PM
тАО06-11-2008 08:19 PM
Re: gunzip tgz problems
Or GNU "tar", but sometimes it get tiring to
recommend the same old solutions every time,
especially when the original problem
statement lacks enough detail to let anyone
discern what really needs to be done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2008 11:39 AM
тАО09-25-2008 11:39 AM