I have a tar.gz file, specifically: http://download.oracle.com/otn-pub/java/jdk/8u20-b26/jdk-8u20-linux-x64.tar.gz. I am going to download this, change it and stick it in my own repository.
I wish to change the name of the root directory that gets extracted without actually extracting, changing, then compressing again manually in separate commands. This is so that anyone that extracts it in the future, will have my specified folder name.
I know I can use the --transform
option but that is NOT what I want, I don't want my users to have to specify this option.
Is this possible?
If not, is there a one liner that does the extraction, change and compression in such a way that doesn't change the permissions or structure etc...
download && extract && mv folder_old folder_new
? Can you describe the usecase?