[SOLVED] How do I install a .tar.xz file in Ubuntu 16.04. Need it in simple terms, like Ubuntu for dommies
Linux - NewbieThis 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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.