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
  •  


INTEL XEON E5-2680V4 SR2N7 2.40GHZ CPU picture

INTEL XEON E5-2680V4 SR2N7 2.40GHZ CPU

$11.00



Dell Precision Tower 7810 Xeon E5-2630 v3 @ 2.40GHz , 32GB Ram, NO HDD, NO OS picture

Dell Precision Tower 7810 Xeon E5-2630 v3 @ 2.40GHz , 32GB Ram, NO HDD, NO OS

$239.99



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Dell Precision T7820 2x Xeon Silver 4114 2.20GHz 950W No RAM GPU HDD 4x SATA picture

Dell Precision T7820 2x Xeon Silver 4114 2.20GHz 950W No RAM GPU HDD 4x SATA

$350.48



Dell Precision T5820 Workstation 3.70GHz W-2135 No RAM/ GPU/ HDD/ OS picture

Dell Precision T5820 Workstation 3.70GHz W-2135 No RAM/ GPU/ HDD/ OS

$179.98



Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS picture

Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS

$84.49



DELL Precision 5820 Workstation Xeon W-2123 3.6ghz/NO RAM/NO SSD/P400 Vid picture

DELL Precision 5820 Workstation Xeon W-2123 3.6ghz/NO RAM/NO SSD/P400 Vid

$139.99



Dell Precision T7820 2x Xeon Gold 6130 2.10GHz 950W No RAM GPU HDD 4x SATA picture

Dell Precision T7820 2x Xeon Gold 6130 2.10GHz 950W No RAM GPU HDD 4x SATA

$374.48



Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM picture

Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM

$699.00



DELL Precision T3420 | Xeon 1240v6 | 525GB SSD |16GB RAM |Nvidia GPU |Win11 picture

DELL Precision T3420 | Xeon 1240v6 | 525GB SSD |16GB RAM |Nvidia GPU |Win11

$149.00