如何创建deb包
准备工作一个文本编辑器一台搭载debian的电脑
创建目录123$ mkdir xxx #将xxx最好改成以下格式:软件名称_软件版本_软件支持的架构$ mkdir xxx/DEBIAN$ mkdir xxx/zzz #这里的zzz指的是软件安装的目录,例如你要将软件安装到/opt/xxx,这里的zzz就替换成opt/xxx
编辑control文件在DEBIAN目录中至少有control文件,还可能有postinst(postinstallation)、postrm(postremove)、preinst(preinstallation)、prerm(preremove)、copyright (版权)、changlog (修订记录)和conffiles等。control文件:描述软件包的名称(Package),版本(Version),描述(Description)等,是deb包必须剧本的描述性文件,以便于软件的安装管理和索引。为了能将软件包进行充分的管理,可能还具有以下字段:
Section:申明软件的类别,常见的有’utils, net, mail, text, x11 等;
...
哔哩哔哩危险地带补档
地址https://dabao1955.github.io/10492/main
备注:1.只是部分补档2.搬运自https://ubc2.github.io/links/menu.html 侵删
update1:站点由https://dabao1955.github.io/1 迁移到 https://dabao1955.github.io/10492/mainupdate2:站点由https://dabao1955.github.io/1 迁移到 https://dpkg123.site/10492/main
通过dpkg-scanpackages创建私有debian软件仓库
效果图
准备工作参考这篇
https://dabao1955.github.io/2023/03/09/%E9%80%9A%E8%BF%87reprepro%E5%88%9B%E5%BB%BA%E7%A7%81%E6%9C%89debian%E8%BD%AF%E4%BB%B6%E4%BB%93%E5%BA%93/
安装dpkg-dev用于搭建本地软件源
123$ sudo apt install dpkg-dev gzip -y
扫描软件包12$ mkdir deb # 这里的文件夹可以填别的名字$ dpkg-scanpackages -m . /dev/null | gzip -9c > Packages.gz #将deb文件放入deb文件夹中再执行此操作
然后在/etc/apt/sources.list.d/1.list中写入
123deb [trusted=-yes] https://xxx.github.io ./ #这里的xxx换成你自己的仓库名
最后执行
1$ sudo apt update
通过reprepro和github page创建私有debian软件仓库
效果图
准备工作:一台装有debian或ubuntu的电脑一双灵巧的手
安装repreproreprepro是一个包仓库管理工具,你可以很容易地安装它。
1$ sudo apt install reprepro -y
编辑仓库配置文件123$ mkdir deb # 这里的文件夹可以填别的名字$ mkdir deb/conf$ touch deb/conf/distributions
使用文本编辑器编辑distributions文件
123456Codename: stable #版本的代号,对应/etc/apt/source.list中URL的相关字段,非常重要。Update: sink #仓库同步的策略,会在conf/updates文件中寻找对应Name的同步策略配置。如果配置了多个同步策略,则依次执行。Architectures: arm64 amd64 #仓库支持的架构Components: main #仓库中deb包的组件类型,包括main,contrib,non-free。Description: testUDebComponents: main
编辑仓库同步文件(可 ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment