Chinaunix首页 | 论坛 | 博客
  • 博客访问: 406357
  • 博文数量: 112
  • 博客积分: 4535
  • 博客等级: 上校
  • 技术积分: 1120
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-12 10:57
文章分类

全部博文(112)

文章存档

2014年(1)

2013年(1)

2012年(18)

2011年(10)

2010年(16)

2009年(48)

2008年(9)

2007年(9)

我的朋友

分类:

2009-10-28 18:16:21


The (called ) is by far the most well-designed and is one of the top on the .

This short Howto describes howto establish a repository for home-grown or like (could be used for Ubuntu as well, since Ubuntu uses the Debian package management system).

Establish repository structure
Create the repository structure in a directory. E.g. in ~/public_html directory exposed to the web.


cd public_html
mkdir my-repository
cd my-repository
mkdir binary
mkdir source

Copy your into the repository

Like this
cp src/bzr_0.11-1.1_all.deb public_html/my-repository/binary/

Install the tools to be able to create a repository index

sudo aptitude install dpkg-dev

Create a repository index
cd my-repository
dpkg-scanpackages binary /dev/null | gzip -9c > binary/Packages.gz
dpkg-scansources source /dev/null | gzip -9c > source/Sources.gz

Using the repository


# Add these two lines into the /etc/apt/sources.list
deb ~cc/my-repository binary/
deb-src ~cc/my-repository source/

Feel free to comment – easier methods and tips are more than welcome ;)

For a more professional package management setup, use


其它参考资料:

如何制作deb格式的包:

阅读(665) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~