LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   extracting files...installing files.....from *.tar.bz2 and *ipk (http://www.linuxquestions.org/questions/linux-newbie-8/extracting-files-installing-files-from-%2A-tar-bz2-and-%2Aipk-827618/)

vinodhkumarvk 08-21-2010 06:04 AM

extracting files...installing files.....from *.tar.bz2 and *ipk
 
hie guys....im a newbie to Ubuntu

i need to extract and install a file which is on the Desktop ---> to my home folder

file format : *.tar.bz2


and how to install the *.ipk files


so plz do provide me info as soon as possible..

thank in advance.......

grail 08-21-2010 06:15 AM

Well not sure about ipk, but the following should work assuming the other file is source code:
Code:

tar axf *.tar.bz2
cd <newly created directory>
./configure
make
sudo make install


knudfl 08-21-2010 07:09 AM

Welcome to LQ.

... And if there is no 'configure' script in the application :
You will have to tell the application name, the full name
of the "*.tar.bz2", please.

There are about 100,000 "*.tar.bz2" with ten different build
methods : Not easy to guess, what it is, you have got.
..

chrism01 08-21-2010 07:38 PM

I would have said

tar -jxf *.tar.bz2

According to this http://linux.die.net/man/1/tar there's no -a flag and -j is for bzip2 files

vinodhkumarvk 08-22-2010 12:14 AM

hie.....thanks a lot for responding..
 
@grail

thanks a lot ,but i came to know that procedure long ago...

and i need it to extract in home folder i.e c/home

plz just check out this

vinodh@ubuntu:~$ sudo tar xjvf development_k2_v1.0.tar.bz2 ~C/home

finally i need to extract in" c/home "but in the folder where it is located
i.e c/home/vinodh/desktop...( location my file is der)


@knudfl

ya sure
"development_k2_v1.0.tar.bz2" it is related to some of my project..which has to be installed and extracted in home directory

it has only two files "picocom" and "env.sh"

@chrism01

thanks....but its nt question..plz once again check out

i have to extract in home folder i.e c/home

grail 08-22-2010 01:31 AM

So what exactly is the problem then? You seem to know all the steps as demonstrated in your last post.

vinodhkumarvk 08-22-2010 04:40 AM

error
 
@grail

but its nt wrking ..............its showwing error.........

tar: ~C/home: Not found in archive
tar: Error exit delayed from previous errors


wat to do????

colucix 08-22-2010 04:53 AM

Code:

sudo tar xjvf development_k2_v1.0.tar.bz2 ~C/home
This does not make much sense. It tells to extract from the archive development_k2_v1.0.tar.bz2 an item called ~C/home. Furthermore the shell tries to substitute ~C with the full path of the home directory of a user called C (if it exists).

Instead you might need the option -C of tar, to extract the archive at a different location than the current working directory. Anyway, sorry but it is not still clear what do you want to accomplish.

Regarding the IPK files, they are archived and compressed debian packages meant to be used on embedded systems with limited storage capacity. Usually the archives were created using ar (not tar) so that you can try to list or extract their content using
Code:

ar t file.ipk
ar x file.ipk

respectively. Nowadays ipk packages are managed by opkg.

vinodhkumarvk 08-22-2010 05:03 AM

hi @colucix

thanks a lot.....i gt it...and thanks for the *.ipk extensions....

my problem is ....i have downloaded a file named

"development_k2_v1.0.tar.bz2" it is related to some of my project..

which is at a location Desktop
i.e /home/vinodh/Desktop

the instrucitons are for that fiel are::

extract the the file "development_k2_v1.0.tar.bz2" in your home directory

basheer 08-22-2010 05:25 AM

The simplest solution is move development_k2_v1.0.tar.bz2 to ur home directory and extract it.

#mv /home/vinodh/Desktop/development_k2_v1.0.tar.bz2 /home/vinodh/
#cd
#tar xvjf development_k2_v1.0.tar.bz2

And u r done.

colucix 08-22-2010 05:53 AM

I suggest to take a look at the content of the archive before extracting:
Code:

cd ~/Desktop
tar jtvf development_k2_v1.0.tar.bz2

in particular see if all the files are contained in a top-level directory (otherwise when you extract it they will be spread in your home directory and maybe this is not what you want).

If this is the case you can proceed as suggested by basheer or directly from the Desktop directory where the archive resides:
Code:

tar jxf development_k2_v1.0.tar.bz2 -C ~

vinodhkumarvk 08-22-2010 08:31 AM

thank u i gt it...........

@all

vinodhkumarvk 08-22-2010 09:49 AM

i have extracetd a file in location usr/local/**

and how to instal it...can u tel me plz

Vegan 08-22-2010 10:40 AM

Quote:

Originally Posted by grail (Post 4073198)
but the following should work assuming the other file is source code:
Code:

cd <Directory where you extracted the files>
./configure
make
sudo make install


The above should work to install, if i am not mistaken

vinodhkumarvk 08-22-2010 11:15 PM

thank u @ abv


All times are GMT -5. The time now is 10:42 PM.