Artica Wiki

ActiveDebianSync: Insert your own package ( command-line)

Lets you add your own custom Debian packages to the mirrored repository

ActiveDebianSync lets you add your own custom Debian packages to the mirrored repository. 
This turns ActiveDebianSync from a simple mirror into a hybrid repository manager.

The system must have dpkg-deb installed:sudo apt install dpkg

Add a package

activedebiansync package add <deb-file> <release> <component> <architecture>

Example:
./activedebiansync package add myapp_1.0.0_amd64.deb bookworm main amd64

Adding package: myapp_1.0.0_amd64.deb
Target: bookworm/main/amd64
Package info: myapp 1.0.0 (amd64)
Package copied to: /var/lib/ActiveDebianSync/mirror/pool/main/m/myapp/myapp_1.0.0_amd64.deb
Generated Packages files
Generated Release file
Successfully regenerated all indexes
✓ Package added successfully
✓ Indexes regenerated

List packages

activedebiansync package list <release> <component> <architecture>

Example:
./activedebiansync package list bookworm main amd64

Listing packages for: bookworm/main/amd64
Found 2 package(s):
Package: myapp
    Version: 1.0.0
    Architecture: amd64
    Size: 1234567 bytes
    Description: My custom application
Package: anotherapp
    Version: 2.3.1
    Architecture: amd64
    Size: 987654 bytes
    Description: Another custom package

Delete package

activedebiansync package remove <package-name> <version> <release> <component> <architecture>

Example: 
./activedebiansync package remove myapp 1.0.0 bookworm main amd64

Regenerate indexes

Useful if index files become corrupted or after manual changes:

activedebiansync package regenerate <release> <component> <architecture>

Example:
./activedebiansync package regenerate bookworm main amd64