DbAppWeb.com

Menu
  • Home
  • Linux
  • HP-UX
  • macOS
  • Windows
  • Web Servers
  • App Servers
  • Storage

How to extract or decompress tar.xz files in Linux

January 10, 2018 DbAppWeb Admin

To extract a *.tar.xz file you need to install the xz-utils package and after that use the command unxz to extract the *.tar from *.tar.xz.

Install the xz-utils package

Copy the RPMs related to xz-utils and install them

[root@dbappweb rpm]# ll
-rw-r--r-- 1 root root 149504 Mar  5  2010 xz-4.999.9-0.3.beta.20091007git.el5.x86_64.rpm
-rw-r--r-- 1 root root  96793 Mar  5  2010 xz-libs-4.999.9-0.3.beta.20091007git.el5.x86_64.rpm
-rw-r--r-- 1 root root  15619 Mar  5  2010 xz-lzma-compat-4.999.9-0.3.beta.20091007git.el5.x86_64.rpm
[root@dbappweb rpm]# rpm -ivh xz-libs-4.999.9-0.3.beta.20091007git.el5.x86_64.rpm
warning: xz-libs-4.999.9-0.3.beta.20091007git.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:xz-libs                ########################################### [100%]
[root@dbappweb rpm]# rpm -ivh xz-4.999.9-0.3.beta.20091007git.el5.x86_64.rpm
warning: xz-4.999.9-0.3.beta.20091007git.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:xz                     ########################################### [100%]
[root@dbappweb rpm]# rpm -ivh xz-lzma-compat-4.999.9-0.3.beta.20091007git.el5.x86_64.rpm
warning: xz-lzma-compat-4.999.9-0.3.beta.20091007git.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:xz-lzma-compat         ########################################### [100%]

Extract or Decompress *.tar.xz File

Here I have to extract the *.tar.xz file given below

[root@dbappweb Wkhtmltopdf]# ll
-rw-r--r-- 1 root root 14541904 Jan 10 10:53 wkhtmltox-0.12.4_linux-generic-amd64.tar.xz

Use the command unxz or xz –decompress to extract *.tar.xz file to  *.tar

[root@dbappweb Wkhtmltopdf]# unxz wkhtmltox-0.12.4_linux-generic-amd64.tar.xz

OR

[root@dbappweb Wkhtmltopdf]# xz --decompress wkhtmltox-0.12.4_linux-generic-amd64.tar.xz

[root@dbappweb Wkhtmltopdf]# ll
-rw-r--r-- 1 root root 124702720 Jan 10 10:53 wkhtmltox-0.12.4_linux-generic-amd64.tar

Now use the command tar -xvf to extract the *.tar file

[root@tcpepsutil Wkhtmltopdf]# tar -xvf wkhtmltox-0.12.4_linux-generic-amd64.tar
wkhtmltox/
wkhtmltox/lib/
wkhtmltox/lib/libwkhtmltox.so.0.12.4
wkhtmltox/lib/libwkhtmltox.so.0
wkhtmltox/lib/libwkhtmltox.so.0.12
wkhtmltox/lib/libwkhtmltox.so
wkhtmltox/include/
wkhtmltox/include/wkhtmltox/
wkhtmltox/include/wkhtmltox/image.h
wkhtmltox/include/wkhtmltox/dllbegin.inc
wkhtmltox/include/wkhtmltox/pdf.h
wkhtmltox/include/wkhtmltox/dllend.inc
wkhtmltox/bin/
wkhtmltox/bin/wkhtmltoimage
wkhtmltox/bin/wkhtmltopdf
wkhtmltox/share/
wkhtmltox/share/man/
wkhtmltox/share/man/man1/
wkhtmltox/share/man/man1/wkhtmltopdf.1.gz
wkhtmltox/share/man/man1/wkhtmltoimage.1.gz
[root@tcpepsutil Wkhtmltopdf]# ll
total 122176
drwxrwxr-x 6 1000 1000 4096 Nov 22 2016 wkhtmltox

Note: I have performed the above steps on RHEL 5.8 64-bit server

Prev Article
Next Article
Tags:Linux tar tar.xz

One Response

  1. JAck

    tar.xz is probably the best compression you can get in linux. I use file roller in ubuntu

Leave a Reply Cancel Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Popular
  • Recent

Categories

  • Android (2)
  • Blogger (16)
  • Domain and Hosting (1)
  • Hardware Issues (7)
  • HP-UX (55)
  • HPE Data Protector (9)
  • IBM Lotus Notes (2)
  • IBM WebSphere Application Server (16)
  • Internet Tips & Tricks (15)
  • iOS (8)
  • JBoss/WildFly Application Server (2)
  • Linux (76)
  • macOS (15)
  • Microsoft Windows (31)
  • News and Updates (11)
  • Oracle Database (5)
  • SSL/TLS (1)
  • Storage Servers (23)
  • Tools/Softwares (1)
  • VMware ESXi (17)
  • Web Servers (14)
  • WordPress (5)

Archives

DbAppWeb.com

Solution of Database, Application and Web Server Problems

About DbAppWeb.com

One Stop Solution for Database Server, Application Server and Web Server Problems.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

DbAppWeb on Social Media

Copyright © 2025 DbAppWeb.com
Terms and Conditions   Theme by MyThemeShop.com