Skip to content

Latest commit

 

History

History
54 lines (45 loc) · 1.32 KB

15.md

File metadata and controls

54 lines (45 loc) · 1.32 KB
title
如何把 deb 软件包上传到 apt 仓库中

到 B 站观看视频

Resources:

sudo vim /etc/apt/sources.list
Package: happyhello
Maintainer: Peter Wang <happypeter1983@gmail.com>
Architecture: i386
Version: 1.0
Depends: hello
Filename: pool/main/h/happyhello/happyhello_1.0_i386.deb
Size: 2960
MD5sum: f093639d521159e82c652677e73a4173
SHA1: 5816634c05f28993afcab1fa007a99b3dd5117cb
SHA256: 976a41623a1774b559a430c8145c2bf9b57fdf4581523b732c286e631d6e75fa
du -b happyhello_1.0_i386.deb
md5sum happyhello_1.0_i386.deb
sha1sum happyhello_1.0_i386.deb
sha256sum happyhello_1.0_i386.deb
scp -r * media.haoduoshipin.com:media/apt/
# peter add his own repo
deb http://media.haoduoshipin.com/apt/ natty main
sudo apt-get update
cd /var/lib/apt/lists/
vim media.haoduoshipin.com_apt_dists_natty_main_binary-i386_Packages
cd /var/cache/apt/ # we see pkgcache.bin here