apt-repo
15期 2012年4月02日

apt-repo

本集介绍如何把自己的deb上传到apt仓库之中,这样我们就可以用apt-get直接安装了。

Resources:

terminal
sudo vim /etc/apt/sources.list
Packages.gz
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
terminal
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
terminal
scp -r * media.happycasts.net:media/apt/
/etc/apt/sources.list
# peter add his own repo
deb http://media.happycasts.net/apt/ natty main
terminal
sudo apt-get update
cd /var/lib/apt/lists/
vim media.happycasts.net_apt_dists_natty_main_binary-i386_Packages
cd /var/cache/apt/ # we see pkgcache.bin here
admin 大约一年前

Hi

king 6 个月前

@happypeter大师能讲讲编译安装软件吗,我想在ubuntu上装个RubyMine,不知道咋整

happypeter 6 个月前

@king 好主意,这两周就讲,敬请关注。