?
Solved

FreeBSD question: I need to  to extract th file with extension .tar.bz2

Posted on 2004-11-01
6
Medium Priority
?
1,453 Views
Last Modified: 2008-01-09
Hi experts,
I need to  to extract this file "gcc-core-3.4.2.tar.bz2" .  Its the total GNU package that contains all the compilers.
This contains gcj,  the gnu java compiler.
What command do i need to do so exactly. The o/s is FreeBSD.

Thks

0
Comment
Question by:parvinderg
  • 2
4 Comments
 
LVL 97

Expert Comment

by:Lee W, MVP
ID: 12466890
Have you tried

tar -xvjf gcc-core-3.4.2.tar.bz2
0
 
LVL 97

Expert Comment

by:Lee W, MVP
ID: 12466903
0
 
LVL 38

Accepted Solution

by:
yuzh earned 2000 total points
ID: 12469268
You need to use "bunzip2" to uncompress the file and then untar it:

eg:
bunzip2 -c /path-to/gcc-core-3.4.2.tar.bz2 | tar -xvf -

If you don't have bunzip2, you need to get it from:
http://sources.redhat.com/bzip2/
0
 
LVL 2

Expert Comment

by:Matt_Avery
ID: 12472914

If your copy of "tar" is a fairly modern version of GNU tar, it will likely have  builtin support for *.bz2 compressed files, so leew's answer ("tar -xvjf gcc-core-3.4.2.tar.bz2") is the easiest one.

If your version of "tar" doesn't recognise the "-j" option, yuzh's answer should still work.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Can you run Linux on a Windows system?  Yep.  Here's how.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

599 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question