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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
08-21-2010, 06:04 AM
|
#1
|
LQ Newbie
Registered: Jul 2010
Posts: 8
Rep: 
|
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.......
|
|
|
08-21-2010, 06:15 AM
|
#2
|
LQ Guru
Registered: Sep 2009
Location: Perth
Distribution: Arch
Posts: 10,037
|
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
|
|
|
08-21-2010, 07:09 AM
|
#3
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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.
..
|
|
|
08-21-2010, 07:38 PM
|
#4
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,434
|
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
|
|
|
08-22-2010, 12:14 AM
|
#5
|
LQ Newbie
Registered: Jul 2010
Posts: 8
Original Poster
Rep: 
|
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
|
|
|
08-22-2010, 01:31 AM
|
#6
|
LQ Guru
Registered: Sep 2009
Location: Perth
Distribution: Arch
Posts: 10,037
|
So what exactly is the problem then? You seem to know all the steps as demonstrated in your last post.
|
|
|
08-22-2010, 04:40 AM
|
#7
|
LQ Newbie
Registered: Jul 2010
Posts: 8
Original Poster
Rep: 
|
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????
|
|
|
08-22-2010, 04:53 AM
|
#8
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
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.
|
|
|
08-22-2010, 05:03 AM
|
#9
|
LQ Newbie
Registered: Jul 2010
Posts: 8
Original Poster
Rep: 
|
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
|
|
|
08-22-2010, 05:25 AM
|
#10
|
Member
Registered: Mar 2009
Location: Bangalore, India
Distribution: CentOS6.5, CentOS7, Ubuntu14.04
Posts: 182
Rep:
|
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.
|
|
|
08-22-2010, 05:53 AM
|
#11
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
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 ~
|
|
|
08-22-2010, 08:31 AM
|
#12
|
LQ Newbie
Registered: Jul 2010
Posts: 8
Original Poster
Rep: 
|
thank u i gt it...........
@all
|
|
|
08-22-2010, 09:49 AM
|
#13
|
LQ Newbie
Registered: Jul 2010
Posts: 8
Original Poster
Rep: 
|
i have extracetd a file in location usr/local/**
and how to instal it...can u tel me plz
|
|
|
08-22-2010, 10:40 AM
|
#14
|
Member
Registered: Aug 2010
Location: Idaho
Distribution: Arch, Ubuntu, Fedora
Posts: 114
Rep:
|
Quote:
Originally Posted by grail
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
|
|
|
08-22-2010, 11:15 PM
|
#15
|
LQ Newbie
Registered: Jul 2010
Posts: 8
Original Poster
Rep: 
|
thank u @ abv
|
|
|
All times are GMT -5. The time now is 05:37 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|