https://github.com/fcwu/apt-repo-server
A Debian apt repository server.
https://github.com/fcwu/apt-repo-server
Last synced: 10 months ago
JSON representation
A Debian apt repository server.
- Host: GitHub
- URL: https://github.com/fcwu/apt-repo-server
- Owner: fcwu
- Created: 2015-08-25T01:46:19.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-09-09T05:16:30.000Z (almost 8 years ago)
- Last Synced: 2025-04-08T20:21:50.617Z (about 1 year ago)
- Language: Python
- Homepage: https://hub.docker.com/r/dorowu/apt-repo-server/
- Size: 3.91 KB
- Stars: 27
- Watchers: 6
- Forks: 19
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
APT-REPO-SERVER
=========================
apt-repo-server is a debian repository server. It monitors file changing event(inotify), then reproduce index file(Packages.gz) automatically.
Usage
=======================
Run server
```
$ docker run -it -v ${PWD}/data:/data -p 10000:80 dorowu/apt-repo-server
```
Export a debian package
```
$ cp qnap-fix-input_0.1_all.deb data/dists/trusty/main/binary-amd64/
```
File structure looks like
```
$ tree data/
data/
└── dists
├── precise
│ └── main
│ ├── binary-amd64
│ │ └── Packages.gz
│ └── binary-i386
│ └── Packages.gz
└── trusty
└── main
├── binary-amd64
│ ├── Packages.gz
│ └── qnap-fix-input_0.1_all.deb
└── binary-i386
└── Packages.gz
```
Packages.gz looks like
```
$ zcat data/dists/trusty/main/binary-amd64/Packages.gz
Package: qnap-fix-input
Version: 0.1
Architecture: all
Maintainer: Doro Wu
Installed-Size: 33
Filename: ./qnap-fix-input_0.1_all.deb
Size: 1410
MD5sum: 8c08f13d61da1b8dc355443044bb2608
SHA1: 6deef134c94da7f03846a6b74c9e4258c514868f
SHA256: 7441f1616810d5893510d31eac2da18d07b8c13225fd2136e6a380aefe33c815
Section: utils
Priority: extra
Description: QNAP fix
UNKNOWN
```
Update /etc/apt/sources.list
```
$ echo deb http://127.0.0.1:10000 trusty main | sudo tee -a /etc/apt/sources.list
```
License
==================
apt-repo is under the Apache 2.0 license. See the LICENSE file for details.