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

Author: Hao Ruan (ruanhao1116@gmail.com)

Created: 2023-10-01 Sun 14:10

Updated: 2023-10-01 Sun 14:26

Emacs 27.2 (Org mode 9.4.4)