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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-03-2017, 06:40 AM
|
#1
|
LQ Newbie
Registered: Feb 2016
Posts: 1
Rep:
|
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.
|
|
|
03-03-2017, 06:44 AM
|
#2
|
Member
Registered: Nov 2009
Location: Gothenburg, Sweden
Distribution: Slackware
Posts: 946
|
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.
|
|
|
03-03-2017, 06:51 AM
|
#3
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
|
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
|
|
|
03-03-2017, 06:52 AM
|
#4
|
LQ Guru
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,522
|
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.
|
03-03-2017, 07:06 AM
|
#5
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
|
What are you trying to install Benadel?
|
|
1 members found this post helpful.
|
03-03-2017, 03:41 PM
|
#6
|
Moderator
Registered: Mar 2008
Posts: 22,130
|
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.
|
|
|
03-03-2017, 04:28 PM
|
#7
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep:
|
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.
|
|
|
03-03-2017, 07:12 PM
|
#8
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
$ 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.
|
|
|
03-03-2017, 07:34 PM
|
#9
|
LQ Veteran
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,259
|
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.
|
|
|
03-03-2017, 09:24 PM
|
#10
|
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
|
Here's information on how to compile from sources on Ubuntu.
https://help.ubuntu.com/community/CompilingEasyHowTo
|
|
|
All times are GMT -5. The time now is 08:38 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|