有人知道如何创建Debian包在Ubuntu上分发吗?
我看过:
https://earthly.dev/blog/creating-and-hosting-your-own-deb-packages-and-apt-repo/#pgp-gpg-and-gnupgp
https://assafmo.github.io/2019/05/02/ppa-repo-hosted-on-github.html
全新的Linux封装,尝试为不同的体系结构分发可执行文件。
1-在DEBIAN中创建了一个控制文件
Package: hello-world
Version: 0.0.1
Maintainer: example <example@example.com>
Depends: libc6
Architecture: arm64
Homepage: http://example.com
Description: A program that prints hello
2-生成.deb文件
dpkg-deb -b ./hello-world
3-创建了一个包文件
dpkg-scanpackages -m . > ./Packages
4-生成密钥
gpg --full-gen-key
5-创建了一个发布文件
Origin: Example Repository
Label: Example
Suite: stable
Codename: stable
Version: 1.0
Architectures: arm64
Components: main
Description: An example software repository
Date: Mon, 02 Aug 2021 17:37:16 +0000
MD5Sum:
6c6d..c7
SHA1:
372...acf5
SHA256:
b06041...94655e
6-创建了一个列表文件
deb [trusted=yes] <url>
7-推送到github-并使用github页面
8-已安装
curl -s --compressed "https://<user>.github.io/<url>/KEY.gpg" | sudo apt-key add -
sudo curl -s --compressed -o /etc/apt/sources.list.d/my_list_file.list "https://<user>.github.io/<url>/my_list_file.list"
sudo apt update
许多不同的错误
Unable to locate package hello-world
或
无法传递文件
等
有人知道如何创建包存储库吗?