在上创建一个稳定的repository
1.创建一个repository目录
sudo mkdir /repository
2.创建该repository的配置目录
sudo mkdir /repository/conf
cd /repository/conf
3.创建该repository的配置文件distributions
cat > distributions << “EOF”
Codename: stable
Components: main multiverse restricted universe
Architecture: lpia source
Update: - stable
EOF
注:在上创建的repository中要有一个Codename和这个一样,否则是不能进行update的
4.创建该repository的配置文件updates
cat > updates << “EOF”
Name: stable
Method: /repository
Architecture: lpia source
Components: main multiverse resticted universe
EOF
5.生成repository
cd /repository
sudo reprepro export stable
6.当测试的repository测试稳定后可以从那里得到更新
sudo reprepro update
在上创建一个测试的repository
1.创建一个repository目录
sudo mkdir /repository
2.创建该repository的配置目录
sudo mkdir /repository/conf
cd /repository/conf
3.创建该repository的配置文件distributions
cat > distributions << “EOF”
Codename: stable
Components: main multiverse restricted universe
Architecture: lpia source
Pull: pull
Codename: unstable
Components: main multiverse restricted universe
Architecture: lpia source
4.创建该repository的配置文件pulls
cat > pulls << “EOF”
Name: pull
From: unstable
Components: main multiverse restricted universe
Architecture: lpia source
EOF
polls配置文件实现从一个codename拷贝一个包到另一个codename中,如:
sudo reprepro -T deb -A lpia copy stable unstable 3g-manager,即从unstable中拷贝3g-manager的deb包到stable中。
5.创建该repository的配置文件incoming
cat > incoming << “EOF”
Name: incoming
IncomingDir: /home/sam/Downloads
TempDir: /repository/tempdir
Arrow: hardy>unstable
EOF
注:可以把/home/sam/Downloads目录下的所有包文件如.dsc,.tar.gz, .deb导进unstable中,但每一个包的.changes文件中的Distribution项必须为hardy,其中TempDir中存放备份的.dsc,.tar.gz,.deb文件,所用的命令为:sudo reprepro processincoming incoming;其中incoming就是配置文件incoming中Name所指的。
reprepro命令
reprepro -b . includedeb codename .deb-filename
reprepro -b . include codename .change-filename
reprepro -b . includedsc codename .dsc-filename
阅读(1426) | 评论(0) | 转发(0) |