apt source 方式
actionchen@actionchen-PC:~/deb-test$ apt source wget
正在读取软件包列表... 完成
需要下载 4,455 kB 的源代码包。
获取:1 https://professional-packages.chinauos.com/desktop-professional eagle/main wget 1.20.1-1.1 (dsc) [1,054 B]
获取:2 https://professional-packages.chinauos.com/desktop-professional eagle/main wget 1.20.1-1.1 (tar) [4,393 kB]
获取:3 https://professional-packages.chinauos.com/desktop-professional eagle/main wget 1.20.1-1.1 (diff) [60.9 kB]
已下载 4,455 kB,耗时 1秒 (3,430 kB/s)
dpkg-source: info: extracting wget in wget-1.20.1
dpkg-source: info: unpacking wget_1.20.1.orig.tar.gz
dpkg-source: info: unpacking wget_1.20.1-1.1.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying wget-doc-remove-usr-local-in-sample.wgetrc
dpkg-source: info: applying wget-doc-remove-usr-local-in-wget.texi
dpkg-source: info: applying wget-passive_ftp-default
dpkg-source: info: applying Fix-a-buffer-overflow-vulnerability.patch
actionchen@actionchen-PC:~/deb-test$ ls
wget-1.20.1 wget_1.20.1-1.1.debian.tar.xz wget_1.20.1-1.1.dsc wget_1.20.1.orig.tar.gz
使用dget 方式获取
actionchen@actionchen-PC:~/deb-test$ dget -u http://mirrors.aliyun.com/debian/pool/main/w/wfuzz/wfuzz_3.1.0-1.dsc
dget: retrieving http://mirrors.aliyun.com/debian/pool/main/w/wfuzz/wfuzz_3.1.0-1.dsc
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1695 100 1695 0 0 45810 0 --:--:-- --:--:-- --:--:-- 45810
dget: retrieving http://mirrors.aliyun.com/debian/pool/main/w/wfuzz/wfuzz_3.1.0.orig.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 431k 100 431k 0 0 3624k 0 --:--:-- --:--:-- --:--:-- 3624k
dget: retrieving http://mirrors.aliyun.com/debian/pool/main/w/wfuzz/wfuzz_3.1.0-1.debian.tar.xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6720 100 6720 0 0 142k 0 --:--:-- --:--:-- --:--:-- 142k
dpkg-source: info: extracting wfuzz in wfuzz-3.1.0
dpkg-source: info: unpacking wfuzz_3.1.0.orig.tar.gz
dpkg-source: info: unpacking wfuzz_3.1.0-1.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying fix-header-script.patch
dpkg-source: info: applying switch-to-python3.patch
dpkg-source: info: applying add-sys-path-append
dpkg-source: info: applying upgrade-doc-installation.patch
actionchen@actionchen-PC:~/deb-test$ ls
wfuzz-3.1.0 wfuzz_3.1.0-1.debian.tar.xz wfuzz_3.1.0-1.dsc wfuzz_3.1.0.orig.tar.gz
actionchen@actionchen-PC:~/deb-test/wget-1.20.1$ debuild -us -uc^C
actionchen@actionchen-PC:~/deb-test/wget-1.20.1$ ls ../
wget-1.20.1 wget_1.20.1-1.1_amd64.deb wget-dbgsym_1.20.1-1.1_amd64.deb
wget_1.20.1-1.1_amd64.build wget_1.20.1-1.1.debian.tar.xz wget-udeb_1.20.1-1.1_amd64.udeb
wget_1.20.1-1.1_amd64.buildinfo wget_1.20.1-1.1.dsc
wget_1.20.1-1.1_amd64.changes wget_1.20.1.orig.tar.gz