Results 1 to 4 of 4

Thread: Comparing two TAR files and getting diff?

  1. #1
    Junior Member registered user
    Join Date
    Jun 2004
    Posts
    13

    Comparing two TAR files and getting diff?

    Ok i may seem retarded, but if i have two tarballs, one is of a file system and the other is the same filesystem with changes
    how can i get a new tarball that has just the differences between the two. There are a couple gigs apiece so i really didn't want to uncompress both to do a diff. is that the only option?

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510
    Just off the top of my head:
    tar tvf tar1.tar > output1.txt
    tar tvf tar2.tar > output2.txt
    diff output1.txt output2.txt > diff.txt

  3. #3
    Junior Member registered user
    Join Date
    Jun 2004
    Posts
    13
    thought of that but it wouldn't give the difference between two files with different contents and same size

  4. #4
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510
    Correct. If you need to guarantee bit-level uniqueness then you are probably left with the option of with complete extraction of the tar & then logging & comparing cryptographic hashes (MD5 or SHA1).

Similar Threads

  1. boot from cd with diff ISO!!
    By star in forum Customising & Remastering
    Replies: 0
    Last Post: 04-26-2005, 04:29 AM
  2. need help with swf files
    By kozo in forum General Support
    Replies: 1
    Last Post: 06-15-2004, 11:38 PM
  3. rar files
    By wrangler in forum General Support
    Replies: 2
    Last Post: 06-13-2004, 05:14 AM
  4. Replies: 0
    Last Post: 03-08-2004, 01:45 PM
  5. myhome/myconfig - what's the diff?
    By zkosty in forum General Support
    Replies: 4
    Last Post: 10-22-2003, 06:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •