Page 1 of 1
How do I extract the package prior to installing on Mac?
Posted: 25 Mar 2019, 23:32
by Tavvy
Excuse if this question is a duplicate, I cannot at this point search through thousands of topics. Trying to install TestDisk stable version on Mac OS 10.11. TestDisk doc doesn’t include specific command line for extracting files on Mac, so used Linux command, which returns: tar: Error opening archive: Failed to open 'testdisk-7.0.mac_intel.tar.bz2' Tried Unarchiver but file is greyed out. Archive Utility extracts testdisk-7.0.mac_intel.tar.bz2.cpgz, but then extracts testdisk-7.0.mac_intel.tar.bz2 from that. Continuing continues that loop. The only experience I have with Terminal is a few instances of cut & pasted commands. Hours searching for how to extract a tarball on a Mac got me nowhere. Finally I found GUI Tar, which unpacked it, but the folder testdisk-7.0.mac_intel is empty. Any ideas would be appreciated.
Re: How do I extract the package prior to installing on Mac?
Posted: 26 Mar 2019, 06:44
by cgrenier
I don't know what you have done... It seems you have created a cpgz file...
It may be a good idea to download again the archive from
https://www.cgsecurity.org
Re: How do I extract the package prior to installing on Mac?
Posted: 26 Mar 2019, 11:13
by Tavvy
Thanks for the reply. I downloaded a fresh WIP version, but get the same Terminal message: tar: Error opening archive: Failed to open 'testdisk-7.1-WIP.mac_intel.tar.bz2'
Unpacking with GUI Tar opensa an empty folder called testdisk-7.1-WIP.mac_intel
Re: How do I extract the package prior to installing on Mac?
Posted: 26 Mar 2019, 15:32
by cgrenier
I have been able to extract the files withut problem from the archive on the website
tar xvjf testdisk-7.1-WIP.mac_intel.tar.bz2
Re: How do I extract the package prior to installing on Mac?
Posted: 27 Mar 2019, 10:50
by Tavvy
Thank you for your time. Getting the same result with the WIP file indicated that unpacking with GUI Tar was probably the issue. The following extracts the .bz2 on Mac (presuming the file is in Downloads). In Terminal move to Download directory with
To extract
Code: Select all
tar -jxvf testdisk-7.1-WIP.mac_intel.tar.bz2
The file name above should be of the file you're working with. All obvious, except to a command line novice.