Tarball: extract one or more files from an archive

To extract a single file from an archive:
# tar zxvf tarfile.tgz -–include=”somefile”

Use patterns:
# tar zxvf tarfile.tgz -–include=”somefile*”

the somefile must use full path. To check file’s fullpath:
# tar tf tarfile.tgz