使用reprepro搭建一个deb repo

https://wiki.debian.org/DebianRepository/SetupWithReprepro

  1. 生成gpgkey

    $ gpg --gen-key
  2. 建立仓库目录

    $ mkdir -p /srv/d/apt/debian/conf
  3. 配置

    # /srv/d/apt/debian/conf/distributions
    Origin: YaCHEN Deb Repo
    Label: YaCHEN Deb Repo
    Codename: all
    Architectures: amd64
    Components: main
    Description: Apt repository of yachen
    SignWith: D338CF4BC6C9728631451F109CD6288D4A572568
# /srv/d/apt/debian/conf/options
verbose
basedir /srv/d/apt/debian
ask-passphrase
  1. 添加deb:

    $ reprepro includedeb all aaa.deb
  2. 导出gpg pubkey

    $ gpg --output yachen-dearmor.gpg --export-options export-minimal --export <key-id>

    key-id可以通过gpg --list-keys查看

此处评论已关闭