Ubuntu
{Back to Index}
Table of Contents
1 Build package from source
package=<package-name> # like socat version=`dpkg-query --showformat='${Version}' --show $package` apt install ubuntu-dev-tools -y pull-lp-source $package $version # cd source dir, like: cd socat-1.7.4.1 # enable/uncomment deb-src in /etc/apt/sources.list apt update apt build-dep $package -y DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -rfakeroot -b -uc -us dpkg -i ../${package}_${version}_`dpkg-architecture -q DEB_BUILD_ARCH`.deb