Can't get bzip2 to work

Q I'm having problems trying to copy the Gambas application from a magazine CD. Using find /mnt/cdrom2 gambas-1.0.1.tar.bz2 -print results in mnt/cdrom2/Magazine/Gambas/gambas-1.0.1.tar.bz2; but adding this pathname to the command tar xvf --bzip2 generates the error message 'btar: --bzip2:Cannot open: No such file or directory'. Replacing 1.0.1 with 2.1.0 in the filename produces the same message. What am I doing wrong?

A There doesn't seem to be anything wrong with the steps you are trying, but the error message suggests your command isn't formatted properly - try this:

tar xvf --bzip2 /mnt/cdrom2/Magazine/Gambas/gambas-1.0.tar.bz2

You can also use the slightly shorter "tar xvfj [filename]" with most versions of tar.

Follow us on Identi.ca or Twitter

Username:   Password:
Create Account | About TuxRadar