Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extract gnutls library files of tar.xz and tar.lz for ubuntu 10.04 LTS

I am very new to linux platform and I want to extract gnutls for ubuntu. If I do,

$ls

then, it will show these files below.

gnutls-3.2.1.tar.lz
gnutls-3.2.1.tar.lz.sig
gnutls-3.2.1.tar.xz
gnutls-3.2.1.tar.xz.sig

When I give command,

$ tar -xvf gnutls-3.2.1.tar.xz

I get output,

tar: xz: Cannot exec: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Exiting with failure status due to previous errors

I want to extract these files.

  1. Why there are two types of formats given? - xz and lz
  2. Why there are signature files? - .sig How to verify it? I tried to verification by gpgv <filename>.sig command, it says public key is not found.
  3. I need a separate utility package? I saw one, 'xz-utils_4.999' but it is beta. http://manpages.ubuntu.com/manpages/lucid/man1/xz.1.html
  4. Any other stable utility package? From where and how can I download it?
like image 836
SHRI Avatar asked Jun 07 '13 05:06

SHRI


People also ask

How extract tar LZ file in Linux?

Simply right-click the item you want to compress, mouseover compress, and choose tar. gz. You can also right-click a tar. gz file, mouseover extract, and select an option to unpack the archive.

How do I extract a tar xz file?

To extract (unzip) a tar. xz file simply right-click the file you want to extract and select “Extract”. Windows users need a tool named 7zip to extract tar. xz files.


2 Answers

tar --lzip -xvf gmp-5.1.2.tar.lz

Worked for me

As mentioned below in the comments, you might have to install the library before the command will work:

sudo apt-get install lzip
like image 99
Homer6 Avatar answered Nov 07 '22 15:11

Homer6


  1. Install lzip.

  2. Launch the following command that creates xxx.tar file and deletes the xxx.tar.lz file after extracting:

    lzip -d xxx.tar.lz 
    
  3. Launch the following command to finally untar:

    tar zxvf xxx.tar
    
like image 32
Ranaivo Avatar answered Nov 07 '22 13:11

Ranaivo