Now, that we have downloaded our sample Debian package we can use ar command to list its content. This can be achieved by t option:
$ ar t hello_2.10-1_amd64.deb
At this stage we have only listed package content and now files have been extracted yet. To extract each individual files listed above use x option and supply desired file name as an argument. For example the below ar command will extract data.tar.xz file from selected debian package:
$ ar x hello_2.10-1_amd64.deb data.tar.xz
Depending on the compression method you can further decompresses give archive content. For XZ compressed tarball use:
$ tar xvJf data.tar.xz
and for Gzip compressed tarball use:
$ tar xvzf data.tar.xz
ARE YOU LOOKING FOR A LINUX JOB? Submit your RESUME or create a JOB ALERT on LinuxCareers.com job portal.
DO YOU NEED ADDITIONAL HELP? Get extra help by visiting our LINUX FORUM or simply use comments below.