I'm new in Linux, is this conversion possible?

Do I need to compress and decompress all content?

link|improve this question
feedback

migrated from stackoverflow.com Nov 16 '11 at 7:59

This question came from our site for professional and enthusiast programmers.

3 Answers

up vote 3 down vote accepted
bunzip2 -c < file.tar.bz2 | gzip -c > file.tar.gz
link|improve this answer
this is nice too! :-) – Jasonw Nov 16 '11 at 5:50
feedback

You need to decompress, and then compress.

You can convert like so:

 bunzip2 -c -d file.tar.bz2 | gzip -v9 > file.tar.gz
link|improve this answer
this is nice! :-) – Jasonw Nov 16 '11 at 5:48
feedback

Yes, you need to decompress and compress the content (because compression is not "compositional").

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.