Posts: 1382
Joined: Fri Jan 04, 2013 1:57 pm
Location: de_DE

how to use xarchiver to extract files with same file name?

Sun Mar 15, 2020 6:12 pm


i have a tar archive, that contains multiple files with the same file name in different versions.
e.g. creating that kind of tar archive:

Code: Select all

echo test-1 > test.txt
tar -ravf test.tar.xz test.txt

echo test-2 > test.txt
tar -ravf test.tar.xz test.txt

echo test-3 > test.txt
tar -ravf test.tar.xz test.txt

echo test-4 > test.txt
tar -ravf test.tar.xz test.txt
to extract all versions of files from command console:

Code: Select all

tar --backup=numbered -xavf test.tar.xz
but how can i open the individual files in xarchiver?
Screenshot from 2020-03-15 19-04-51.png
Screenshot from 2020-03-15 19-04-51.png (39.77 KiB) Viewed 157 times
when i double-click to each of those test.txt files, i always get the most recent content in the editor (with "test-4").
same, when i click extract selected file, i only the the last version of the test.txt with "test-4".

i have the newest Raspbian version installed and upgraded.
{ I only give negative feedback }
RPi B (256MB), B (512MB), B+, ZeroW; 2B; 3B, 3B+; 4B (4GB)

User avatar
Posts: 1269
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Website

Re: how to use xarchiver to extract files with same file name?

Thu May 07, 2020 8:54 pm

That's an issue with many programs - when you have multiple files of the same name, you run into trouble.

Solution: Change the filenames to be unique. If that's not an option, then you'll have to extract the entire archive and open your files using File Manager.
Ever wished you could "open" a RaspiOS .img file? Well now you can! I've developed Pi-Power-Tools, the only RaspiOS img editor on the planet.
Want to try it out?

Code: Select all

wget -O - | bash

Return to “Troubleshooting”