💻 Software
Specify root dir inside tarball
Fresh5 days ago
Mar 15, 20265274 viewsConfidence Score0%
0%
Problem
Is there a way to execute Such that when the tarball is extracted, it doesn't extract to project-root, but instead extracts to something else? i.e. I'm aware of -C, but I want it such that something-else doesn't exist yet.
Error Output
tar cjvf foo.tar.bz2 project-root
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Specify root dir inside tarball
Low Risk
Make a symlink first, and have tar follow it. The is necessary to follow the link and select all the contents rather than just tarring the symlink itself. You could alternatively use the option on GNU tar (but this will also follow links inside, whi…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix