Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


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

Posted on 2004-11-01
Medium Priority
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.


Question by:parvinderg
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 96

Expert Comment

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

tar -xvjf gcc-core-3.4.2.tar.bz2
LVL 96

Expert Comment

by:Lee W, MVP
ID: 12466903
LVL 38

Accepted Solution

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

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:

Expert Comment

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.

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

636 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