How to uncompress and install tar.gz/tar.bz2/rar packages in Ubuntu

This post was written by admin on October 17, 2009
Posted Under: General

This tutorial shows how to uncompress and install tar packages in ubuntu.

Uncompress:
First,open up terminal(Applications/Accessories/Terminal).
For tar.gz packages:

sudo tar zxvf file.tar.gz

For tar.bz2 packages:

sudo tar jxvf file.tar.bz2

For rar packages

sudo rar a file.rar

For tar.Z packages

sudo uncompress file.tar.Z

If uncompress packages in user folder(/home/user),omit “sudo” in previous commands.
Install
After uncompress a tar package,commonly you can read the “readme” file in folder for how to install.Following are often used:
option 1:

sudo ./configure
make
make install

option 2:

sudo ./configure --prefix=/path
make
make install

option 3:

sudo ./configure --enable-static-link \
--prefix=$XXX/static --with-curses &&
make &&
make install

Related posts:

  1. Save Ubuntu space-auto-delete downloaded packages after installation
  2. How to enable Moodbar in Amarok music player
  3. Reinstall all of currently installed packages in fresh ubuntu install
  4. Install and Add Linux Mini Main Menu (Mint-Menu) in Ubuntu 10.04 Panel
  5. How to Cleanup cache,useless packages in Ubuntu

    Tags:

    Reader Comments

    This is NOT clear. Many people will be new to Linux and therefore confused unless it’s made VERY clear what EXACTLY to do – simple systematic steps THAT ASSUME NO PRIOR KNOWLEDGE. When are ‘geeks’ going to get that many people are very confused about how to do things, and NEED clear concise instructions in order to achieve success, and hopefully learn that the world doesn’t neccesarily revolve around Windows.

    [Reply]

    #1 
    Written By Padi Phillips on January 15th, 2010 @ 5:52 pm

    the genius of windows and mac is even 7 year olds can master it.
    linux…it takes a bachelors degree to begin to understand it.

    [Reply]

    #2 
    Written By Randy on January 28th, 2010 @ 9:14 pm

    hello sir,
    when i use
    #sudo ./configur
    sudo: ./configure: command not found ..
    what can i do
    i m try all three options

    [Reply]

    #3 
    Written By nikesh on May 30th, 2010 @ 12:18 pm

    Hello sir, I am using maverick (pre-release) and need to install tar.gz files to run my network. None of your instructions work. All Ubuntu releases are ridiculously difficult and confusing. Greater simplification is required for software installations other than via synaptic or software centre.

    [Reply]

    #4 
    Written By Chris on September 14th, 2010 @ 7:21 am

    No matter what I try… nothing works…
    ————– from terminal —-
    sudo: ./configure: command not found
    pba@pac:/media/DATA/INSTALL/LANscan/AutoScan-Network-Linux-1.50.bin$ sudo make
    make: *** No targets specified and no makefile found. Stop.
    pba@pac:/media/DATA/INSTALL/LANscan/AutoScan-Network-Linux-1.50.bin$
    ———-
    I need a local LAN scanner. Any other posibility and only .deb file is usabel. I have tryed 100 times. tar.gz dosn’t work.
    Regards
    Poul

    [Reply]

    #5 
    Written By Poul on April 6th, 2011 @ 2:03 pm

    for anyone reading this who is having problems with the ./configure step, you need to make sure you have build essentials installed on your machine (the terminal program used to build the installation). this is not installed by default (on 10.04 anyway)
    open terminal and type:
    sudo apt-get install build-essential
    then you can sudo ./configure

    [Reply]

    #6 
    Written By nick_4554 on July 16th, 2011 @ 5:19 pm

    Why not just install unp then it will be ONE command. What a waste of a web page

    [Reply]

    #7 
    Written By ActionParsnip on August 26th, 2011 @ 9:39 am

    Add a Comment

    required, use real name
    required, will not be published
    optional, your blog address