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 11-11-2017, 12:16 PM   #1
gillsman
Member
 
Registered: Mar 2014
Location: UK
Distribution: Mint 18.3
Posts: 192

Rep: Reputation: 35
How to install tar files


This is one thing that has always confused me. I have searched for info on how to install tar files in Linux but Ive always got really confused.

I decided to try again as I want to try the Firefox Quantum browser but it's a tar.bz2 & I have no idea how to install it.
I have downloaded & extracted it but that's as far as I can go. A lot of info I have found say's you need to find readme and/or install files for instructions but having extracted this file as far as I can see there is no such files.
I also found some instruction for the following commands
./configure
make
sudo make install
so I tried putting these commands in the terminal but it just says "no such file"
I'm very confused, if anyone can help I would be very grateful but I need simple step by step instructions please.
Thank you.
 
Old 11-11-2017, 12:35 PM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,587
Blog Entries: 16

Rep: Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316
This particular tarball isn't source code, it's a binary package. Put it somewhere (for example in /opt), unpack it and just run it. Ideally create a link to the firefox binary from /usr/bin so that it will run as a normal command.
 
Old 11-11-2017, 12:38 PM   #3
bitfuzzy
Member
 
Registered: Nov 2003
Posts: 289

Rep: Reputation: 69
tar xvf [your-file.bz2]

enter unpacked directory

run commands (configure/make/etc)

have fun
 
Old 11-11-2017, 12:44 PM   #4
gillsman
Member
 
Registered: Mar 2014
Location: UK
Distribution: Mint 18.3
Posts: 192

Original Poster
Rep: Reputation: 35
Thank you
 
Old 11-11-2017, 12:50 PM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,587
Blog Entries: 16

Rep: Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316
Quote:
Originally Posted by bitfuzzy View Post
tar xvf [your-file.bz2]
enter unpacked directory
run commands (configure/make/etc)
That won't work on this tarball as the OP pointed out. It's one of those FF binaries that Mozilla supply to people who don't want to use the version that comes via their package manager.
 
Old 11-11-2017, 01:31 PM   #6
bitfuzzy
Member
 
Registered: Nov 2003
Posts: 289

Rep: Reputation: 69
Quote:
Originally Posted by hazel View Post
That won't work on this tarball as the OP pointed out. It's one of those FF binaries that Mozilla supply to people who don't want to use the version that comes via their package manager.

Yea, I wasn't sure if he misspoke or not lol
 
Old 11-11-2017, 01:46 PM   #7
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
There are executables like Firefox, which come packed as a tar.gz. Running tar -xvf filename.tar.gz unpacks them. As root (or sudo) you can put them in /usr/local/bin or /opt.

Secondly there is packed proprietary software. HP does often do that or NVidia. Then you have a file with (usually) .run extension. You run such a file with bash ./filename.run. Instructions can differ among programs, so always read the install instructions after unpacking.

These two above mentioned cases are exceptions. I know less than 5 of such programs I have installed on my machine.

Real source tarballs need to be unpacked and built. Built means configure/make/install. If you are running Mint you never have to do that unless very special cases where you want to compile from source. Usually you do not want to do that. Use the Mint installation manager instead.

jlinkels
 
Old 11-11-2017, 05:32 PM   #8
gillsman
Member
 
Registered: Mar 2014
Location: UK
Distribution: Mint 18.3
Posts: 192

Original Poster
Rep: Reputation: 35
OK so if I unpack it to a folder how do I set up a link so that I can create a desktop icon please
 
Old 11-12-2017, 02:46 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,426
Blog Entries: 10

Rep: Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249
you have to find out the name of the executable first.
in your case it is likely to be 'firefox', probably in a 'bin' subfolder.
then right-click on your desktop and find an option to create a new launcher or desktop item, and point it to the executable.
 
Old 11-12-2017, 03:13 AM   #10
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,587
Blog Entries: 16

Rep: Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316
Quote:
Originally Posted by ondoho View Post
you have to find out the name of the executable first.
in your case it is likely to be 'firefox', probably in a 'bin' subfolder.
then right-click on your desktop and find an option to create a new launcher or desktop item, and point it to the executable.
I unpacked the tarball and had a look. The executable is at top level and is called firefox.
 
Old 11-12-2017, 04:14 AM   #11
gillsman
Member
 
Registered: Mar 2014
Location: UK
Distribution: Mint 18.3
Posts: 192

Original Poster
Rep: Reputation: 35
Yep, that works fine. Thanks to all as always.
Incidentely has anyone else tried out Firefox Quantum (Beta) yet, if so any thoughts / comments ?
 
  


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
LXer: All About Tar Files And How To tar, untar Files In Linux Using Terminal LXer Syndicated Linux News 0 05-30-2017 06:44 AM
Creating a large tar ile form a sequence of small tar files and one files is missing jyunker Linux - Newbie 4 03-10-2015 02:56 PM
how to install .tar.bz and src.rpms and tar.gz files gadekishore Linux - Software 1 10-12-2005 08:09 PM
How do you install tar/gz files, and rpm files? Fear58 Linux - Software 6 02-14-2004 04:35 PM
cant install .bin files, tar.gz files or anyother format!!! madskillz Linux - Newbie 4 10-05-2003 10:28 AM

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

All times are GMT -5. The time now is 11:18 AM.

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