Shih-Yuan Lee (FourDollars)
Dec. 27, 2011
/etc/apt/sources.list
/etc/apt/sources.list.d/*.list
$ man sources.list
deb http://ftp.tw.debian.org/debian/ squeeze main contrib non-free deb-src http://ftp.tw.debian.org/debian/ squeeze main contrib non-free
deb
使用在 Binary packagesdeb-src
使用在 Source packageshttp
, https, file, cdrom, ftp, sshstable
, testing, unstable, experimentalsqueeze
, wheezy, sid/etc/apt/preferences
/etc/apt/preferences.d/*
$ man apt_preferences
Package: * Pin: release a=*-proposed Pin-Priority: 400 Package: * Pin: origin "ppa.launchpad.net" Pin-Priority: 450
$ apt-cache policy ibus-chewing ibus-chewing: 已安裝:1.3.9.2-3ubuntu2sylee1 候選: 1.3.9.2-3ubuntu2sylee1 版本列表: *** 1.3.9.2-3ubuntu2sylee1 0 450 http://ppa.launchpad.net/fourdollars/ibus/ubuntu/ oneiric/main i386 Packages 100 /var/lib/dpkg/status 1.3.9.2-3ubuntu1.1 0 500 http://archive.ubuntu.com/ubuntu/ oneiric-updates/main i386 Packages 1.3.9.2-3ubuntu1 0 500 http://archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages
dpkg-dev build-essential devscripts quilt
apt-get source
--download-only hellodget -u
http://ftp.tw.debian.org/debian/pool/main/h/hello/hello_2.7-2.dsc
.debian.tar.gz
-- debian/ 目錄.dsc
-- 描述檔.orig.tar.gz
-- 上游原始碼包dpkg-source -x
hello_2.7-1.dsc
dch -i
This is a test.
dpkg-buildpackage
-us -uc -tc -b
dpkg-buildpackage
-us -uc -S
debdiff
hello_2.7-1.dsc hello_2.7-2.dscdpkg -I
hello_2.7-3_i386.debdpkg -c
hello_2.7-3_i386.debdpkg -i
hello_2.7-3_i386.debdpkg -s
hellodpkg -L
hellodpkg -r
hellodpkg -P
hello[epoch:]upstream_version[-debian_revision]
版號沒有 [-debian_revision] 的套件都是 native 的套件
QUILT_PATCHES
=debian/patchesQUILT_DIFF_ARGS
="--color=auto"
series
top
new
02-fix-some-typo.patchadd
src/hello.crefresh
dch -l
kitty This is Hello Kitty.建立一個 chroot 的環境 (cleanroom) 來編譯 Debian packages
加速 pbuilder 執行速度的外掛,在某些套件編譯會發生問題。
簡化使用 pbuilder 時的複雜度
pbuilder ccache cowbuilder
MIRRORSITE=http://ftp.debian.org/debian/ COMPONENTS="main contrib non-free" DISTRIBUTION=testing BUILDRESULT=~/deb/ DEBOOTSTRAPOPTS=('--keyring=/usr/share/keyrings/debian-archive-keyring.gpg')
create
update
build
hello_2.7-2kitty1.dsclogin
create
update
build
hello_2.7-2kitty1.dsclogin
ubuntu-dev-tools
create
update
build
hello_2.7-2kitty1.dsclogin
create
update
build
hello_2.7-2kitty1.dsclogin
OpenPGP
public keySSH
public key+activate-ppa
DEBFULLNAME
='Shih-Yuan Lee (FourDollars)'DEBEMAIL
='fourdollars@gmail.com'debsign
hello_2.7-2kitty1_source.changesdput ppa:
fourdollars/ppa hello_2.7-2kitty1_source.changes
# bzr-builder format 0.3 deb-version {debupstream}+svn{revno}-0ubuntu0~{time} lp:betaradio merge packaging lp:~fourdollars/betaradio/daily-packaging
bzr dailydeb
--allow-fallback-to-native betaradio.recipe working-dirThank you!