通过debian/changle 文件操作版本
tmux (1.8-4.1) testing; urgency=low * Non-maintainer upload. * 说明 -- xxxxSat, 31 Aug 2013 13:20:57 +0800
通过dch -i 修改changle , 其中 testing 为修改的内容,
环境变量中添加
export DEBEMAIL="xxx@xxx.com"export DEBFULLNAME="your name"
dpkg-buildpackage -rfakeroot -k你的gpg_KEYID -sa
注: 其中-sa为打包orig的源代码
reprepro conf/distributions 内容
#参考 /usr/share/doc/reprepro/examples/di.example/distributions#参考 /usr/share/doc/reprepro/examples/di.example/updatesOrigin: DebianLabel: DebianSuite: testingCodename: testingArchitectures: i386 amd64 sourceComponents: main contrib non-freeVersion: 7.0Description: testing 7.0 RepositoryOrigin: Debian sidLabel: Debian unstableSuite: unstableCodename: sidVersion: 7.0Architectures: i386 amd64 sourceComponents: main contrib non-freeDescription: unstable 7.0 Repository
reprepro conf/incoming内容
Name: testing-uploadIncomingDir: /home/lvdata/develop/class_by_os/linux/debian/reprepro/incomingTempDir: /home/lvdata/develop/class_by_os/linux/debian/reprepro/temp_dir#Allow: experimental>lucid-experimental stable>lucidAllow: testing>testing stable>wheezy unstable>sidDefault: testingMultiple: YesPermit: older_version unused_filesCleanup: on_deny on_error unused_files
reprepro conf/options 内容
verboseask-passphrasebasedir .
~/.dput.cf 部分内容
[local]method = local#incoming = ~/public_html/debian/mini-dinstall/incoming#incoming = /home/lvdata/develop/class_by_os/linux/debian/repreproincoming = /home/lvdata/develop/class_by_os/linux/debian/reprepro/incomingrun_dinstall = 0#post_upload_command = /usr/bin/mini-dinstall --batch#allowed_distributions = (?!UNRELEASED|.*-security|testing)#allowed_distributions = (testing)allow_unsigned_uploads = 0#post_upload_command = ssh %(login)s@%(fqdn)s reprepro --basedir /srv/d_kirikou/reprepro/debian processincoming default
需要修改/usr/share/dput-ng/codenames/debian.json 添加 testing 否则会提示找不到codename group的错误
dput local xxxx.chanage 上传到指定目录
reprepro -b 指定仓库基地址 processincoming testing-upload
reprepro -b . list testing
apt-get update >> /dev/null 2> /tmp/${NAME}_apt_add_key.txtkey=`cat /tmp/${NAME}_apt_add_key.txt | cut -d":" -f6 | cut -d" " -f3`apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key