LinuxQuestions.org
Help answer threads with 0 replies.
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, 07: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, 07:44 AM   #2
mats_b_tegner
Member
 
Registered: Nov 2009
Location: Gothenburg, Sweden
Distribution: Slackware
Posts: 667

Rep: Reputation: 433Reputation: 433Reputation: 433Reputation: 433Reputation: 433
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, 07:51 AM   #3
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163
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, 07:52 AM   #4
Turbocapitalist
Senior Member
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 4,444
Blog Entries: 3

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
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, 08:06 AM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

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

Rep: Reputation: 3016Reputation: 3016Reputation: 3016Reputation: 3016Reputation: 3016Reputation: 3016Reputation: 3016Reputation: 3016Reputation: 3016Reputation: 3016Reputation: 3016
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, 05:28 PM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: Mojave
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 05:30 PM.
 
Old 03-03-2017, 08:12 PM   #8
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,003
Blog Entries: 1

Rep: Reputation: 847Reputation: 847Reputation: 847Reputation: 847Reputation: 847Reputation: 847Reputation: 847
$ 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, 08:34 PM   #9
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 19
Posts: 5,930
Blog Entries: 21

Rep: Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966
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, 10: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: 15,875
Blog Entries: 27

Rep: Reputation: 4667Reputation: 4667Reputation: 4667Reputation: 4667Reputation: 4667Reputation: 4667Reputation: 4667Reputation: 4667Reputation: 4667Reputation: 4667Reputation: 4667
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 01:16 PM
Cannot extract a tar.gz file in Ubuntu lorahjo Linux - Newbie 25 04-04-2013 02:03 PM
.bin file install failed on Ubuntu 10.04LTS but worked on Ubuntu 11.10 wh33t Linux - Software 8 01-18-2012 02:51 PM
tar.gz how to install ubuntu 10.04 EAI Linux - Newbie 9 06-28-2010 02:42 PM
i need help installing a tar.gz file on ubuntu msbaseball210 Linux - Newbie 2 05-04-2008 06:22 PM

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

All times are GMT -5. The time now is 02:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration