LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-15-2006, 07:29 PM   #1
rgreeves
Member
 
Registered: Sep 2006
Location: Tucson, Az.
Distribution: hardy heron
Posts: 111

Rep: Reputation: 15
tar


how does one install a file that has the extension of tar.bz2?
 
Old 12-15-2006, 07:39 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The tar.bz2 just means that the file is an archive. Probably of a directory. Without further information on what you are trying to install, I can't provide exact info, just possibilities.

If this is a source tarball, then most likely:
A) download the tarball to a place where you have full permissions, such as a ~/downloads/ directory.
B) extract the directory and files: tar xvjf filename-version.tar.gz
C) cd into the extracted directory: cd filename-version/
D) read the README and INSTALL files. The info may alter the rest of these instructions.
E) prepare the Makefile: ./configure
F) compile the project: make
G) sudo make install

Instead, you might find a README file and a <filename>.bin file. If so, you will probably need to run the <filename>.bin file to install the program.
A) make the file executable:
chmod +x <filename>.bin
B) run the install program: ./<filename>.bin

A few smaller projects will supply the source and a Makefile. A smaller project, or one perhaps a console based program written in the windows world may not use the autoconf system. In this case use skip the "./configure" part and run "make"; su to root; and run "make install". Still others may have some kind of "install.sh" or similar shell script that will carry out the installation for you.
sudo ./install.sh

Last edited by jschiwal; 12-17-2006 at 12:27 AM.
 
Old 12-16-2006, 12:25 AM   #3
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
replace su with sudo for ubuntu
 
Old 12-17-2006, 12:27 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Thank you "binary y2k2" for that clarification. I edited my earlier post.
 
Old 12-17-2006, 02:32 AM   #5
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
By default su will go and ask for a password and just fail every time, because the root account is disabled. Took me a while to get used to typing those extra 2 characters "do"
 
  


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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 03:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 11:55 AM
tar | ssh (tar > .tar) syntax issues EarlMosier Linux - Software 6 12-21-2006 01:28 AM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 02:04 PM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 07:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:16 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