ubuntu 构建 deb 安装包

源码包下载:http://mirrors.163.com/ubuntu/

编译工具安装:

apt-get install dpkg-dev

 

以openvswitch为例:

wget http://mirrors.163.com/ubuntu/pool/main/o/openvswitch/openvswitch_2.10.0-0ubuntu2.debian.tar.xz

wget http://mirrors.163.com/ubuntu/pool/main/o/openvswitch/openvswitch_2.10.0.orig.tar.gz

tar -xvf openvswitch_2.10.0.orig.tar.gz

tar -xvf openvswitch_2.10.0-0ubuntu2.debian.tar.xz -C openvswitch-2.10.0

cd openvswitch-2.10.0

export DEB_BUILD_OPTIONS=nocheck

dpkg-buildpackage -b -uc -j12

posted @ 2019-08-01 10:27  salami_china  阅读(705)  评论(0编辑  收藏  举报