1)在正式搭建之前我们首先肯定要做准备工作啦:
RSA算法原理:
http://www.ruanyifeng.com/blog/2013/06/rsa_algorithm_part_one.html
http://www.ruanyifeng.com/blog/2013/07/rsa_algorithm_part_two.html
gpg的使用:
http://www.ruanyifeng.com/blog/2013/07/gpg.html
reprepo的使用:
https://manpages.debian.org/stretch/reprepro/reprepro.1.en.html
2)首先创建一个本地仓库测试一下:
1,创建仓库目录以及配置文件目录.
mkdir test
cd test
mkdir conf
cd conf
2, 在conf/ 这个目录下面创建一个配置文件配置文件的名字为: distributions
该文件的格式为:
Origin: Your project name
Label: Your project name
Codename: <osrelease>
Architectures: i386 amd64
Components: main
Description: Apt repository for project x
SignWith: <key-id>
3,创建仓库
注意我首先通过apt-get下载了一个文件通过这个文件来创建仓库.
4,加入我们刚刚自己创建的到apt的源里.
注意这里我指定了 [arch=amd64]说明这个源的软件都是64bit的, 还有一种方式是在前面创建etc/distributions这个配置文件的时候去掉 i389这个选项.
5, 测试一下: