12.2. Unpacking the Archive

 < Day Day Up > 

Having obtained the archive file by one of the above methods, you need to unpack it and install it on your system. Unpacking can be done anywhere we'll assume you're unpacking it in your home directory. Installing it on the system requires you to have root privileges. If you aren't a system administrator with root access, you can still compile and use bash; you just can't install it as a system-wide utility. The first thing to do is uncompress the archive file by typing gunzip bash-3.0.tar.gz.[1] Then you need to "untar" the archive by typing tar -xf bash-3.0.tar. The -xf means "extract the archived material from the specified file." This will create a directory called bash-3.0 in your home directory.

[1] gunzip is the GNU decompression utility. gunzip is popular but relatively new and some systems don't have it. If your system doesn't, you can obtain it by the same methods as you obtained bash. gunzip is available from the FSF. gzip -d does the same thing as gunzip.

The archive contains all of the source code needed to compile bash and a large amount of documentation and examples. We'll look at these things and how you go about making a bash executable in the rest of this chapter.

     < Day Day Up > 


    Learning the bash Shell
    Learning the bash Shell: Unix Shell Programming (In a Nutshell (OReilly))
    ISBN: 0596009658
    EAN: 2147483647
    Year: 2005
    Pages: 139

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net