Unix/Linux Go Back    

UNIX and Linux Applications Discuss UNIX and Linux software applications. This includes SQL, Databases, Middleware, MOM, SOA, EDA, CEP, BI, BPM and similar topics.

Update compressed archive (TAR)

UNIX and Linux Applications

Thread Tools Search this Thread Display Modes
Old Unix and Linux 02-26-2008
brendan76 brendan76 is offline
Registered User
Join Date: Jan 2008
Last Activity: 18 May 2009, 5:21 AM EDT
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
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 ?

tar -uvzf archive.tgz ./file.txt
tar: Cannot update compressed archives
Try `tar --help' for more information.

Sponsored Links
Old Unix and Linux 02-26-2008
robotronic's Unix or Linux Image
robotronic robotronic is offline Forum Advisor  
Can I play with madness?
Join Date: Apr 2002
Last Activity: 20 December 2009, 10:56 AM EST
Location: Italy
Posts: 370
Thanks: 0
Thanked 0 Times in 0 Posts
As far as I know, I think you are forced to uncompress the tarfile before trying an update and then recompress the updated file Linux

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.
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
compressed file blackzinga80 Shell Programming and Scripting 3 03-18-2011 10:47 AM
scan compressed x-zer0 Shell Programming and Scripting 0 08-12-2010 01:09 PM
Extracting from archive | compressing to new archive chebarbudo Shell Programming and Scripting 5 12-20-2009 02:44 PM
Count number of compressed files in a tar.gz archive vrk1219 UNIX for Dummies Questions & Answers 5 08-16-2009 03:03 PM
compressed file venkatesht UNIX for Dummies Questions & Answers 7 02-16-2009 03:15 AM

All times are GMT -4. The time now is 03:58 AM.