Reply
 
Thread Tools Display Modes
  #1  
Old 09-07-2008, 05:37 PM
koukisaad koukisaad is offline
Junior Member
 
Join Date: Aug 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to extract .pbi files
i there, i have updated my pcbsd-davinci to edison (1.5) with the patch, but the sources were not updated. so if there is a command to extract the .pbi patch or a link to download the sources without downloading the second iso file pleaz help me. i want the kernel sources to install my wlan card.
thanks a lot
Reply With Quote
  #2  
Old 09-07-2008, 10:12 PM
TerryP TerryP is offline
Senior Member
 
Join Date: Nov 2005
Location: Ga. USofA
Posts: 7,906
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to TerryP Send a message via AIM to TerryP Send a message via Yahoo to TerryP
Default Re: how to extract .pbi files
The best way to get the source code for that task is from the second CD, as it matches your kernel.
Reply With Quote
  #3  
Old 09-13-2008, 03:45 PM
Ian_Robinson Ian_Robinson is offline
Senior Member
 
Join Date: Jan 2007
Location: Salem, Ohio, U.S.
Posts: 328
Thanks: 0
Thanked 2 Times in 2 Posts
Default Re: how to extract .pbi files
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I. Fetch source without CD2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The GUI way of fetching source code without CD2 is to click "Start -> Settings -> System Administration-> System Manager [Enter Password] -> Tasks"

Next, click the "Fetch System Source" tab inside the CSup box
Click "Find Fastest"
Uncheck the "All" button
Choose your country or closest server and click the arrow to move it over to the right column
Click Start
When it is finished searching and suggests an appropriate server, accept it.

Next, in the lower half of the box, "Parts of sourcecode to download", click Start
The source code will begin to download. It will take a while depending on the speed of your computer and its internet connection.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
II. Extracting PBI's
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

For you to use at your own risk (in case you end up corrupting your system with incompatible operating system files or libraries as TerryP said) there is a script at http://www.bsdforums.org/forums/archive ... 50705.html that extracts PBIs to a tar.bz2 file. You can open the tar.bz2 file to reach and extract whatever you want from it. That link would show that on 31-July-2007, ephemera said:

Quote:
What compression algorithm do PBI packages (PC-BSD) use and how can I extract files from it under FeeBSD?
I just checked the PBI file format by hexdumping it. It's a bziped tar archive wrapped in an executable. Here's a quick hack to convert a PBI file to .tar.bz2:


============================================
#!/bin/sh
#
# PC-BSD PBI to tar.bz2 convertor
#
# Girish 1 Aug 07
#
if [ $# -ne 1 ] ; then
echo "Usage: $(basename $0) file"; exit 1
fi
if [ ! -r $1 ] ; then
echo "Error: $1: File doesn't exist or is not readable." ; exit 1
fi
PKG="$(basename $1 .pbi).tar.bz2"
printf "Converting PBI -> tar.bz2... "
tail +$(awk '/__PBI_ARCHIVE__/ {print NR+1}' $1) $1 >${PKG} 2>&1
if [ $? -ne 0 ] ; then
printf "\nError: Couldn't convert PBI file. PBI is probably corrupt.\n"
rm ${PKG}
exit 1
fi
echo "Done."
============================================
To use this script:

1. Copy and paste the text between the === lines to a text editor
2. Save the text with a name like "pbi2bz2.sh" in a directory
3. load a terminal, become root (su <Enter> password: <Enter>)

Now,

4. cd to the location where you have saved pbi2bz2.sh
5. execute this command to make the script executable:
Code:
chmod +x pbi2bz2.sh
6. copy the target pbi to the same directory
7. execute the script with the name of the target pbi:
Code:
./pbi2bz2.sh <name_of_target_pbi>
8. You can then open the resulting tar.bz2 file with ark or with Konqueror.
__________________
Ian
FitchKendall AT Gmail.com
Reply With Quote
  #4  
Old 09-13-2008, 06:42 PM
koukisaad koukisaad is offline
Junior Member
 
Join Date: Aug 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: how to extract .pbi files
thanks a lot for this script, i will try it tonight.
Reply With Quote
Reply

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
log files kstefan General Questions 6 08-28-2007 05:24 AM
where to get .pbi files ? cosmo PBI Discussion 4 03-19-2007 06:55 PM
BIN/CUE Files to DVD Lasander General Questions 8 11-23-2006 11:22 PM
1.2 RC1 Files Available kmoore134 Announcements 24 07-11-2006 04:26 PM
ASX files Charles General Questions 6 04-30-2006 08:20 PM


All times are GMT. The time now is 11:08 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.