Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th February 2007, 18:12
full_adder full_adder is offline
Junior Member
 
Join Date: Feb 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default how can extract the source files

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
Reply With Quote
Sponsored Links
  #2  
Old 25th February 2007, 18:50
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

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
Reply With Quote
  #3  
Old 25th February 2007, 18:51
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

One more thing
Quote:
I am sure that .bz2 in the src folder
But you specify a file in /tmp?
Reply With Quote
  #4  
Old 25th February 2007, 19:03
full_adder full_adder is offline
Junior Member
 
Join Date: Feb 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #5  
Old 25th February 2007, 19:05
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

The command should be
Code:
bunzip2 /usr/tmp/kernel-2.6.15.tar.bz2
Notice the difference between /tmp and /usr/tmp.
Reply With Quote
  #6  
Old 25th February 2007, 19:11
full_adder full_adder is offline
Junior Member
 
Join Date: Feb 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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 /]#

Last edited by full_adder; 25th February 2007 at 19:21.
Reply With Quote
  #7  
Old 25th February 2007, 22:09
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

Quote:
Originally Posted by full_adder
[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
Reply With Quote
  #8  
Old 26th February 2007, 20:25
full_adder full_adder is offline
Junior Member
 
Join Date: Feb 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

yes the problem was in the file name and path specification, tar command was done correctly.


thanks brother
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dspam planet_fox General 6 20th January 2007 19:42
Network questions regarding Ubuntu Server lubod Installation/Configuration 7 3rd January 2007 19:53
Upgrade from 2.2.0 to 2.2.1 successful but SSL and IMAP stopped working teleriddler Installation/Configuration 8 29th April 2006 15:25
Logging in to isp config Jrdgames General 43 6th March 2006 20:04
ISPConfig Firewall and no sense MyLinux General 7 9th September 2005 18:35


All times are GMT +2. The time now is 06:38.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.