PDA

View Full Version : Adding custom packages (.deb) to the Kali 2.0 live-build process



rfischman
2016-05-19, 12:05
I'm attempting to build a custom Kali 2.0 ISO that has Nessus pre-installed on it. However, I can't locate the packages directory to place the .deb file in under the kali-config tree. I had been using the Kali documentation as a guide for this and it references a packages directory.

Any help would be greatly appreciated!

Thanks

jezzivi
2016-05-20, 13:15
config/packages.chroot for .deb packages

rfischman
2016-05-20, 15:07
config/packages.chroot for .deb packages

Except that when one downloads the live-build-config from git for Kali, there is no config directory. There's a kali-config directory and then various desktop variants. After build.sh is run, I see a config directory.

rfischman
2016-05-20, 16:03
After running build.sh, the config/packages.chroot directory is there. I placed my Nessus-6.6.2-debian6_amd64.deb in that folder and reran build.sh. THe build fails and the log indicates "Unable to locate package Nessus"

Is there another location I need to edit to allow the live build to find the package?

akej4
2017-01-18, 11:25
To add external .deb to kali repositories create a packages folder : live-build-config / kali-config / common / packages
To add .deb from the kali repositories add the package names to the kali.list.chroot file

lyssarylle-8069
2017-09-22, 18:08
So the latest Nessus.deb is not a valid Debian package. Debian packages cannot be Upper case (Nessus), and have to be (nessus). https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=818907
I have soleved the issue by renaming and repacking the Nessus.deb packages as per
https://unix.stackexchange.com/questions/138188/easily-unpack-deb-edit-postinst-and-repack-deb

Thanks.