This write up was done by Titan8990
==Overview==
This document describes how the ssb (sid source build) technique can be implemented in Backtrack Linux to upgrade packages as needed. As for our learning purposes we will be upgrading wireshark.
==Preparing to Build==
===Find and Adding the Repository===
First thing we need to do is find the package we are looking for. The Debian IRC channels have an excellent bot that functions as an interface for the Ultimate Debian Database. Using this bot we can easily check which versions are available in the Debian repositories and which trunk it is available.
versions wireshark
wireshark -- etch: 0.99.4-5.etch.3 etch-security: 0.99.4-5.etch.3 lenny: 1.0.2-3+lenny4 lenny-security: 1.0.2-3+lenny5 squeeze: 1.2.2-1 sid: 1.2.2-2
Our target is version 1.2.2-2 that we will be pulling from the Debian Sid repositories.
To begin we must add the <b>only</b> the source repositories for Debian Sid. A full list of Debian mirrors can be found here:
http://www.debian.org/mirror/list.
# echo 'deb-src ftp.us.debian.org/debian/ sid main contrib non-free' >> /etc/apt/sources.list
Coming Soon: An sane way of adding the gpg key for the Debian Sid repository.
Now we just need to update our package lists:
# aptitude update
===Getting the Dependenicies===
Apt makes it easy to install all the dependencies need for compiling a source package. To do this we just the build-deb arguement in apt-get. We should also make sure that we have build-essential.
# aptitude install build-essential
# apt-get build-dep wireshark
==Fetching and Compiling the Source==
Now that we have everything we need we can fetch the source and start to compile. This will create a small mess in your current working directory so it is recommended that you create a directory for this build.
# mkdir ~/wireshark_build
# cd ~/wireshark_build
# apt-get -b source wireshark
The result should be a couple of .deb files in the current working directory.
==Installing the debs==
Now we can use dpkg to install the new packages. In most cases there is not reason to uninstall the old wireshark because dpkg will recognize it as an upgrade (unless you modified files in the /debian directory of the source).
# dpkg -i wireshark-common_1.2.2-2_i386.deb
#dpkg -i wireshark_1.2.2-2_i386.deb
# dpkg -i tshark_1.2.2-1_i386.deb