内网仓库搭建

搭建内网仓库

1.同步仓库

例如仓库地址为如下仓库,想要搭建内网仓库,首先需要同步此仓库

deb http://sh-internal.deepin.com/repo/v20/uos-sw64-base/ eagle main contrib non-free

#创建存放仓库的目录位置
mkdir uos-sw64-base
#进入目录,创建conf目录
cd uos-sw64-base && mkdir conf
#在conf目录中创建两个文件
#创建distributions描述文件,可有不修改
touch distributions
#内容如下,内容根据实际仓库地址修改

Origin: uniontech
Label: uos-server-mil-1032
Suite: stable
Codename: shengxie
Version: 20
Architectures: sw_64
Components: main contrib non-free
UDebComponents: main contrib non-free
Contents: .gz
#SignWith: 93B25969
Description: uos 1032 server enterprise J
#Log: uos-eagle.log --type=dsc changelogs.example
Update: server-mil-sw64

#创建updates文件
touch updates
#内容如下,根据实际修改仓库地址
Name: uos
Suite: eagle
Architectures: sw_64
Components: main contrib non-free
UDebComponents:
Method: http://sh-internal.deepin.com/repo/v20/uos-sw64-base
VerifyRelease: blindtrust

#完成后到uos-sw64-base目录,进行仓库同步,没有reprepro需仓库安装
cd uos-sw64-base
sudo reprepro update

2.使用内网仓库

进入/etc/apt/source.list配置仓库,/media/deepin/B4FE-5314/repo为目录地址
deb [trusted=yes] file:///media/deepin/B4FE-5315/repo/uos-sw64-base/ eagle main contrib non-free

#更新仓库
sudo apt update
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值