5

I am new to Linux and I am trying to install AMD drivers on my system. For this I downloaded the file from AMD website. It is called amdgpu-pro-17.30-465504.tar.xz. In the website it says that I have to extract the file using the following command

tar -Jxvf amdgpu-pro-17.30-450654.tar.xz

But when I do this, I am getting the following error.

username@Lenovo:~/Downloads$ tar -Jxvf amdgpu-pro-17.30-465504.tar.xz
xz: (stdin): File format not recognized
tar: Child returned status 1
tar: Error is not recoverable: exiting now

How can I install extract it? What is the cause of this error?

andrew.46
  • 38,003
  • 27
  • 156
  • 232

2 Answers2

7

xz-utils can extract xz compressed files

Install it with the following command:

sudo apt install xz-utils -y

Then use it as below to extract your file:

xz -d amdgpu-pro-17.30-450654.tar.xz

kingmilo
  • 10,274
R3DDY97
  • 71
  • Worth noting that the command in this answer will automatically remove the .xz file unless you append -k option. – RayLuo Aug 11 '23 at 08:35
3
tar -xvf amdgpu-pro-17.30-450654.tar.xz

No need for J in the beginning! With J you are filtering it, but usually it's not neccessary.

loonz
  • 31