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
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:
- Save Ubuntu space-auto-delete downloaded packages after installation
- How to enable Moodbar in Amarok music player
- Reinstall all of currently installed packages in fresh ubuntu install
- Install and Add Linux Mini Main Menu (Mint-Menu) in Ubuntu 10.04 Panel
- How to Cleanup cache,useless packages in Ubuntu
Tags: tips

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]
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]
hello sir,
when i use
#sudo ./configur
sudo: ./configure: command not found ..
what can i do
i m try all three options
[Reply]
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]
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]
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]
Why not just install unp then it will be ONE command. What a waste of a web page
[Reply]