hi everyone I instaled FC5, and I download the source thrught Internet, that code is: Linux-2.6.15.tar.bz2 and I put it in /usr/src then, from the terminal, I typed the following cammand to extract the files: [root@localhost src]# tar xvfj /tmp/kernel-2.6.15.tar.bz2 the system gave me: tar: /tmp/kernel-2.6.15.tar.bz2: Cannot open: No such file or directory tar: Error is not recoverable: exiting now tar: Child returned status 2 tar: Error exit delayed from previous errors I am sure that .bz2 in the src folder so what is the problem, and how can I extract these files corectly? thank you very much
The bzip2 and bunzip2 utilities are newer than gzip and gunzip and are not as common yet, but they are rapidly gaining popularity. The bzip2 utility is capable of greater compression ratios than gzip. Therefore, a bzip2 file can be 10-20% smaller than a gzip version of the same file. Usually, files that have been compressed by bzip2 will have a .bz2 extension. To uncompress a bzip2 file, execute the following command: Code: bunzip2 /tmp/kernel-2.6.15.tar.bz2 The result of this operation is a file called /tmp/kernel-2.6.15.tar. By default, bunzip2 will delete the /tmp/kernel-2.6.15.tar.bz2 file. You can now extract the contents with Code: tar xvf /tmp/kernel-2.6.15.tar
please see what happened: [root@localhost src]# bunzip2 /tmp/kernel-2.6.15.tar.bz2 bunzip2: Can't open input file /tmp/kernel-2.6.15.tar.bz2: No such file or directory. then I moved the .bz2 to /usr/tmp, the same output: [root@localhost src]# cd /usr/tmp [root@localhost tmp]# ls linux-2.6.15.tar.bz2 [root@localhost tmp]# bunzip2 /tmp/kernel-2.6.15.tar.bz2 bunzip2: Can't open input file /tmp/kernel-2.6.15.tar.bz2: No such file or directory.
The command should be Code: bunzip2 /usr/tmp/kernel-2.6.15.tar.bz2 Notice the difference between /tmp and /usr/tmp.
I know that, please look at the following: [root@localhost /]# ls /usr/tmp linux-2.6.15.tar.bz2 [root@localhost /]# bunzip2 /usr/tmp/kernel-2.6.15.tar.bz2 bunzip2: Can't open input file /usr/tmp/kernel-2.6.15.tar.bz2: No such file or directory. [root@localhost /]#
The file name is linux-2.6.15.tar.bz2 and you specified kernel-2.6.15.tar.bz2 in your command. Please use correct file & path names. The final command should/could now be Code: bunzip2 /usr/tmp/linux-2.6.15.tar.bz2 Maybe even the tar command works when using correct path name: Code: tar xjvf /usr/tmp/linux-2.6.15.tar.bz2
yes the problem was in the file name and path specification, tar command was done correctly. thanks brother