This document explains how to create a Debian (.deb) package from source code or manually on a Linux system. It covers topics such as package types, dependencies, tools for creating packages, package files and structure, and testing packages. Key steps include installing package creation tools, compiling an application from source, and using tools like checkinstall or debmake to convert it to a .deb package. Manual package creation involves creating package files and directories, writing installation scripts, and building the package. The document provides examples to create packages for the bzip2 tool from source and manually for a test package.