You are on page 1of 3

Home Translators Contribute to Kali Kali Forums F.A.

Have a question? Ask or enter a search term. SEARCH

English Rebuilding a Package from Source


简体中文 Home / 07. Kali Linux Development
Français
Deutsch
‫اﻟﻌﺮﺑﻴﺔ‬ On occasion, we need to rebuild a Kali package from source. Fortunately, this is as simple as
Português
apt-getting the package sources, modifying them to your needs, and then rebuilding them using
Nederlands
Debian tools. In this example, we will recompile the libfreefare package in order to add some
Italiano
extra hardcoded Mifare access keys into the mifare-format tool.
Русский
Español

Categories Downloading the Package Source


00. Introduction to Kali Linux # Get the source package
apt-get source libfreefare
01. Downloading Kali Linux
cd libfreefare-0.3.4~svn1469/
02. Building Custom Kali Images

03. Installing Kali Linux

04. Kali Linux Network Installs


Edit the Package Source Code
05. Kali Linux General Use Make the changes needed to the source code of the package. In our case, we modify an example
file, mifare-classic-format.c.
06. Kali Linux ARM Architecture
07. Kali Linux Development nano examples/mifare-classic-format.c
08. Troubleshooting Kali Linux

09. Kali Community Support

10. Kali Linux Policies


Check for Build Dependencies
Check for any build dependencies the package may have. These need to be installed before you
Latest Articles can build the package.

Custom EfikaMX Image


dpkg-checkbuilddeps

Install Kali ARM on an EfikaMX


The output should be similar to the following, depending on what packages you already have

Custom Beaglebone Black Image


installed. If dpkg-checkbuilddeps returns no output, that means you do not have any missing
dependencies and can proceed with the build.
Install Kali ARM on a Beaglebone
Black
dpkg-checkbuilddeps: Unmet build dependencies: dh-autoreconf libnfc-dev
Custom CuBox Image

Install Kali ARM on a CuBox


Install Build Dependencies
Kali Linux sources.list repositories
Install any build dependencies if needed, as shown in the output of dpkg-checkbuilddeps:
Install NVIDIA Drivers on Kali Linux
apt-get install dh-autoreconf libnfc-dev
Kali Linux on Galaxy Note 10.1

Submitting Bugs for Kali Linux

Build the Modified Package


Twitter Stream With all of the dependencies installed, it is a simple matter of invoking dpkg-buildpackage to
build your new version.

Follow Us!
dpkg-buildpackage
Install the New Package
If all went well, you should be able to install your newly-created package.

dpkg -i ../libfreefare*.deb

Related Articles

Custom EfikaMX Image

Custom Beaglebone Black Image

Custom CuBox Image

Custom Raspberry Pi Image

© Copyright 2013, Offensive Security

English 简体中文 Français Deutsch ‫اﻟﻌﺮﺑﻴﺔ‬ Português Nederlands Italiano Русский Español

You might also like