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. Install and Add Linux Mini Main Menu (Mint-Menu) in Ubuntu 10.04 Panel
  3. How to enable Moodbar in Amarok music player
  4. Reinstall all of currently installed packages in fresh ubuntu install
  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

    Add a Comment

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