LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-21-2010, 06:04 AM   #1
vinodhkumarvk
LQ Newbie
 
Registered: Jul 2010
Posts: 8

Rep: Reputation: Disabled
Lightbulb 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.......
 
Old 08-21-2010, 06:15 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,996

Rep: Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187
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
 
Old 08-21-2010, 07:09 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.
..
 
Old 08-21-2010, 07:38 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,344

Rep: Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746
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
 
Old 08-22-2010, 12:14 AM   #5
vinodhkumarvk
LQ Newbie
 
Registered: Jul 2010
Posts: 8

Original Poster
Rep: Reputation: Disabled
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
 
Old 08-22-2010, 01:31 AM   #6
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,996

Rep: Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187
So what exactly is the problem then? You seem to know all the steps as demonstrated in your last post.
 
Old 08-22-2010, 04:40 AM   #7
vinodhkumarvk
LQ Newbie
 
Registered: Jul 2010
Posts: 8

Original Poster
Rep: Reputation: Disabled
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????
 
Old 08-22-2010, 04:53 AM   #8
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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.
 
Old 08-22-2010, 05:03 AM   #9
vinodhkumarvk
LQ Newbie
 
Registered: Jul 2010
Posts: 8

Original Poster
Rep: Reputation: Disabled
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
 
Old 08-22-2010, 05:25 AM   #10
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: CentOS6.5, CentOS7, Ubuntu14.04
Posts: 182

Rep: Reputation: 29
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.
 
Old 08-22-2010, 05:53 AM   #11
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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 ~
 
Old 08-22-2010, 08:31 AM   #12
vinodhkumarvk
LQ Newbie
 
Registered: Jul 2010
Posts: 8

Original Poster
Rep: Reputation: Disabled
thank u i gt it...........

@all
 
Old 08-22-2010, 09:49 AM   #13
vinodhkumarvk
LQ Newbie
 
Registered: Jul 2010
Posts: 8

Original Poster
Rep: Reputation: Disabled
i have extracetd a file in location usr/local/**

and how to instal it...can u tel me plz
 
Old 08-22-2010, 10:40 AM   #14
Vegan
Member
 
Registered: Aug 2010
Location: Idaho
Distribution: Arch, Ubuntu, Fedora
Posts: 114
Blog Entries: 2

Rep: Reputation: 10
Quote:
Originally Posted by grail View Post
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
 
Old 08-22-2010, 11:15 PM   #15
vinodhkumarvk
LQ Newbie
 
Registered: Jul 2010
Posts: 8

Original Poster
Rep: Reputation: Disabled
thank u @ abv
 
  


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
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 11:02 AM
need help with installing *.tar.bz2 files YberDo Linux - Software 22 05-08-2007 04:46 PM
installing tar.bz2 files M O L8ingN2dust Mandriva 2 03-26-2005 03:46 AM
extracting tar.bz2.gz files crank Linux - Newbie 5 04-18-2004 11:33 PM
extracting .bz2 files mjkramer Linux - Newbie 4 10-16-2003 09:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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