There is no option to select a specific version of a file in an archive for extraction.
When you extract the file, you got at final the last version of the file in the archive.
Extract from man page :
Quote:
-x Extracts the files specified by one or more File parameters from the archive.
If the File parameter refers to a directory, the tar command recursively
extracts that directory from the archive. If you do not specify the File
parameter, the tar command extracts all of the files from the archive. When an
archive contains multiple copies of the same file, the last copy extracted
overwrites all previously extracted copies. If the file being extracted does not
already exist on the system, the file is created. If you have the proper
permissions, the tar command restores all files and directories with the same
owner and group IDs as they have on the tape. If you do not have the proper
permissions, the files and directories are restored with your owner and group
IDs. It is not possible to ask for any occurrence of a file other than the last.
|