debian policy - 5.6.12 version
TRANSCRIPT
$4
http://fourdollars.blogspot.comhttp://www.plurk.com/fourdollars
Ubuntu Hardware Summit 2010
9月 24日免費報名參加
http://www.ubuntu.com/uhs2010http://www.ubuntu.com/uhs2010-zh
Agenda 軟體版本號碼
Linux Kernel, Mozilla Firefox
Debian版本號碼 [epoch:]upstream_version[-debian_version] Native Debian Package 比大小
Package Maintainer Debian Package Maintainer Ubuntu Package Maintainer PPA / Customized Maintainer Non-Maintainer Update
major.minor[.build[.revision]]
major.minor[.maintenance[.build]]
major.minor.release[.bugfix]
major.minor[.bugfix]
軟體版本號碼
奇數開發版號2.3.0 → 2.3.1 → … → 2.3.99-pre1 → … → 2.4.0
2.5.0 → 2.5.1 → … → 2.5.75 → 2.6.0
偶數穩定版號2.4.0 → 2.4.1 → … → 2.4.33 → 2.4.33.1 → …
Linux Kernel before 2.6
2.6.0 → 2.6.1 → … → 2.6.8 → 2.6.8.1
2.6.9, 2.6.10, 2.6.11 → 2.6.11.1 → …
2.6.34 → 2.6.34.1 → …
2.6.35-rc1 → … → 2.6.35-rc6 → … → 2.6.35
Linux Kernel after 2.6
upstream_version
[epoch:]upstream_version[-debian_version]
上游軟體的版本號碼
[A-Za-z0-9+.~:-]+
有 epoch:才可以使用 :
有 -debian_version才可以使用 -
Linux Kernel Package
$ dpkg -l '*linux-image*' | grep ^ii
linux-image-2.6.32-24-generic 2.6.32-24.38
Mozilla Firefox Package
$ dpkg -l '*firefox*' | grep ^ii
firefox 3.6.7+build2+nobinonly-0ubuntu0.10.04.1
Native Debian Package
沒有使用 [-debian_version] 的 Debian Package[epoch:]upstream_version[-debian_version]
$ dpkg -l | lessdh-make 0.50
debianutils 3.2.2debian-policy 3.8.4.0
比大小
dpkg --compare-versions<版本號 > <比較關係 > <版本號 >
lt 小於 '<<'
le 小於或等於 '<='eq 等於 '='
ne 不等於 '!='ge 大於或等於 '>='
gt 大於 '>>'
Q & A
[epoch:]upstream_version[-debian_version][A-Za-z0-9+.~:-]+
3 = 0:3-0
3:1 = 3:1-0 ? 0:3-0 = 33.1 = 0:3.1-0 ? 0:3-0 = 3
3+1 = 0:3+1-0 ? 0:3-0 = 33-1 = 0:3-1 ? 0:3-0 = 3
3~1 = 0:3~1-0 ? 0:3-0 = 3
Debian Package Maintainer
直接打包上傳至 Debian 官方套件庫
linux 2.6.35-rc1 → 2.6.35~rc1-1firefox 4.0b1 → 4.0~b1-1
debian_version習慣上從 1開始
Ubuntu Package Maintainer
直接打包上傳至 Ubuntu 官方套件庫linux 2.6.35-rc1 → 2.6.35~rc1-0ubuntu1
firefox 4.0b1 → 4.0~b1-0ubuntu1
取自 Debian 官方套件庫加上修改linux 2.6.35-rc1 → 2.6.35~rc1-1ubuntu1
firefox 4.0b1 → 4.0~b1-1ubuntu1
0ubuntu1 << 1 << 1ubuntu1 << 2
PPA / Customized Package
直接打包上傳至 PPA 套件庫linux 2.6.35-rc1 → 2.6.35~rc1-0ubuntu0ppa1
取自 Debian 官方套件庫加上修改linux 2.6.35-rc1 → 2.6.35~rc1-1ubuntu0ppa1
取自 Ubuntu 官方套件庫加上修改linux 2.6.35-rc1 → 2.6.35~rc1-1ubuntu1ppa1
0ubuntu0ppa1 << 0ubuntu1 << 0ubuntu1ppa1 << 11 << 1ubuntu0ppa1 << 1ubuntu1 << 1ubuntu1ppa1 << 2
Non-Maintainer Update
Native1.0.1 → 1.0.1+nmu1
Upstream1.0-1 → 1.0-1+nmu1
New Upstream2.0-0+nmu1
Debian Bug report logs - #542288