LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-03-2017, 06:40 AM   #1
Benadel
LQ Newbie
 
Registered: Feb 2016
Posts: 1

Rep: Reputation: Disabled
How do I install a .tar.xz file in Ubuntu 16.04. Need it in simple terms, like Ubuntu for dommies


How do I install a .tar.xz file in Ubuntu 16.04. Need it in simple terms, like Ubuntu for dummies.
Thks for the help.
 
Old 03-03-2017, 06:44 AM   #2
mats_b_tegner
Member
 
Registered: Nov 2009
Location: Gothenburg, Sweden
Distribution: Slackware
Posts: 946

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
This looks like an archive.
Open up a terminal and extract the file with:
Code:
tar -xJf filename.tar.xz
There is probably a README or INSTALL text file in the archive.
 
Old 03-03-2017, 06:51 AM   #3
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Hi & Welcome to LQ.

Once you have the tar.gz downloaded you will need to untar it. To do that run this command to untar it.
Code:
tar xvf <name of tar.ball>
After it's untarred you'll need to locate the README file or the INSTALL file that will explain how to install it.

Change to the directory that the file is in and run the commands to install it.
Code:
cd Downloads (directory that the tar file is in)
Generally it's:
Code:
./configure
make 
(as root) make install
Here's a few examples:
http://askubuntu.com/questions/75307...ll-tar-gz-file

https://www.youtube.com/watch?v=njqib0fzE9c
 
Old 03-03-2017, 06:52 AM   #4
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,522
Blog Entries: 4

Rep: Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831
The simple way is to find the application in the repository (Software Center) and install from there. If you need a newer version, hunt down the PPM.

If you are going from a tarball, the INSTALL or README file will tell you but you are 10000% better off rolling that into a package yourself and using your custom package rather than trying to install it from raw source.
 
1 members found this post helpful.
Old 03-03-2017, 07:06 AM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
What are you trying to install Benadel?
 
1 members found this post helpful.
Old 03-03-2017, 03:41 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,130

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
I'll second the question of what are you trying to do. I assume you have a program that you got from someplace but that may be wrong. Is this a program or just a set of files?

In a very general sense a tar file is a set of files strung one behind the other to make a single file. The .xz tells us it is most likely been compressed like using zip on windows. When un-compress them and separate them out you get a collection of files usually. I try to put those files in a unique place so they won't get posted all over the drive.

In many cases, when you have a program in this manner it will have some sort of read me file in it to help the user install it.
 
Old 03-03-2017, 04:28 PM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
On Ubuntu, the package format is .deb
There are few occasions, IMO for a user to install anything from tar.xz

http://xyproblem.info/

In Simple terms,
Start with the Software Manager

Last edited by Habitual; 03-03-2017 at 04:30 PM.
 
Old 03-03-2017, 07:12 PM   #8
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
$ tar -xJvpf file.tar.xz

Requires some things that may not be installed by default. Package xz-utils in debian for that compression type.

$ cd file/
$ ./configure --prefix=/usr
$ fakeroot debian/rules binary

This should create the .deb packages in the ../ path. Which you can dpkg -i ../*.deb as root (sudo). Assuming there is a ./debian/rules and it functions, and no other .deb things in ../

$ sudo dpkg -i ../*.deb

Making a lot of assumptions there, but enough to be functional in some cases. Some things use build steps other than the traditional ./configure && make && sudo make install. So YMMV. Some have pre-scripts to build the Makefile and configure scripts which can be handled with dh_autoreconf in debian. And probably some other tools. Some use scons, cmake, m4, and other build methods. Basically extract the source and read through the ./doc/ or README or INSTALL documentation (or scripts). Or google for blogs and stuff detailing the steps.
 
Old 03-03-2017, 07:34 PM   #9
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,259
Blog Entries: 21

Rep: Reputation: 3500Reputation: 3500Reputation: 3500Reputation: 3500Reputation: 3500Reputation: 3500Reputation: 3500Reputation: 3500Reputation: 3500Reputation: 3500Reputation: 3500
If me. I'd start with

Code:
apt-cache policy build-essential
To make sure I had the tools to install from source 1st.

But

Quote:
Need it in simple terms, like Ubuntu for dummies.
Hearing that

http://www.linuxquestions.org/questi...8/#post5678750

That is best advise in this thread.
 
Old 03-03-2017, 09:24 PM   #10
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,582
Blog Entries: 28

Rep: Reputation: 6219Reputation: 6219Reputation: 6219Reputation: 6219Reputation: 6219Reputation: 6219Reputation: 6219Reputation: 6219Reputation: 6219Reputation: 6219Reputation: 6219
Here's information on how to compile from sources on Ubuntu.

https://help.ubuntu.com/community/CompilingEasyHowTo
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to install tar.gz in Ubuntu 14.04 Don Graham Linux - Newbie 12 09-12-2014 12:16 PM
Cannot extract a tar.gz file in Ubuntu lorahjo Linux - Newbie 25 04-04-2013 01:03 PM
.bin file install failed on Ubuntu 10.04LTS but worked on Ubuntu 11.10 wh33t Linux - Software 8 01-18-2012 01:51 PM
tar.gz how to install ubuntu 10.04 EAI Linux - Newbie 9 06-28-2010 01:42 PM
i need help installing a tar.gz file on ubuntu msbaseball210 Linux - Newbie 2 05-04-2008 05:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration