The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > UNIX and Linux Applications
Google UNIX.COM


UNIX and Linux Applications Questions involving software not covered by other forum go here. This includes Databases and Middleware.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
diff on compressed files with tar.gz ext rakeshou UNIX for Dummies Questions & Answers 7 09-20-2007 11:27 AM
Search first line of compressed file cbreiner UNIX for Advanced & Expert Users 1 09-05-2007 02:52 PM
Sorting Compressed Fields ndoggy020 UNIX for Dummies Questions & Answers 1 06-05-2007 02:59 PM
Check if file compressed or not badg3r Shell Programming and Scripting 4 09-14-2006 01:58 AM
import compressed files using pipe pengwyn UNIX for Dummies Questions & Answers 0 07-18-2005 11:57 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-26-2008
Registered User
 

Join Date: Jan 2008
Posts: 7
Update compressed archive (TAR)

Is it possible to update a file in a compressed archive.tgz using the tar app without uncompressing/extracting, update and compressing/creating ?

Code:
tar -uvzf archive.tgz ./file.txt
tar: Cannot update compressed archives
Try `tar --help' for more information.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-26-2008
robotronic's Avatar
Can I play with madness?
 

Join Date: Apr 2002
Location: Italy
Posts: 370
As far as I know, I think you are forced to uncompress the tarfile before trying an update and then recompress the updated file

I thought it was possible to do the trick with a named pipe but the tar update command needs a real non-compressed tarfile to process, so it's useless.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:50 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0