Create a tar.gz from an image file (Linux or Mac) [closed]

Hi I have an img of a custom linux distro and I would like to convert it to a tar.gz file. (I am using Mac or Linux OS)

What is the most straight forward way to do it?

Thank you

1

1 Answer

Convert isn't quite what it does. You can compress the image into a tar.gz file with:

tar -cvzf linuximage.tar.gz linuximage

You can uncompress/unzip with:

tar -xvzf linuximage.tar.gz

Just replace linuximage with the actual filename or folder.

1

You Might Also Like