>_ IzzyLab

Topic breakdown

The task breaks down into two independent steps: first download the file over HTTP, then extract it locally. curl is used for the download, and it must be given an output file (the -o flag), otherwise the binary content spills straight into the terminal. The .tar.gz extension means a tar archive compressed with gzip, so extraction is done with the tar utility using a combination of flags for extraction, gzip decompression, specifying the archive file, and the target directory (-C). The destination directory is created beforehand with mkdir -p.

What's checked

  1. main.py extracted into /opt/release
  2. exactly the archive from the server was extracted
  3. the archive was downloaded from the server

What it looks like