E[x]tract an archive preserving the original directory structure

7z

7z x {{path/to/archive.7z}}

click the source code to copy install 7z on any operating system with command-not-found.com