Solved

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

Posted on 2004-11-01
1,400 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
Question by:parvinderg
    4 Comments
     
    LVL 95

    Expert Comment

    by:Lee W, MVP
    Have you tried

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

    Expert Comment

    by:Lee W, MVP
    0
     
    LVL 38

    Accepted Solution

    by:
    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

    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
    Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
    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…
    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.:

    875 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now