4 aptitude install python python-debian python-lzma curl python-jinja2 python-werkzeug sqlite3
8 The database name is currently hardcoded as `test.sqlite3`. So copy the SQL
9 statements from `importpkg.py` into `sqlite3 test.sqlite3`.
13 Import individual packages by feeding them to importpkg.py:
15 ls -t /var/cache/apt/archives/*.deb | while read f; echo $f; ./importpkg.py < $f || break; done
17 Import a full mirror::
19 ./autoimport.py http://your.mirror.example/debian
23 Run `./webapp.py` and enjoy a webinterface at `0.0.0.0:8800` or inspect the
24 SQL database by hand. Example query:
26 SELECT a.package, a.filename, b.package, b.filename, a.size FROM content AS a JOIN content AS b ON a.hash = b.hash WHERE (a.package != b.package OR a.filename != b.filename) ORDER BY a.size DESC LIMIT 100;