Script to create Termux apt repositories
Project description
termux-apt-repo
Script to create Termux package repos.
It can be used to publish cross-compiled packages created using the Termux build setup or with packages created (possibly on-device) with termux-create-package.
Usage instructions
In Termux, install with packages install termux-apt-repo and execute as:
termux-apt-repo <directory-with-debs> <apt-repository-directory>
When using outside Termux (the script should work on most Linux distributions), install with pip3 install termux-apt-repo.
All the .deb files in the first directory will be published to a newly created APT repository in the second directory (which will be deleted if it exists, so take caution).
Publishing the generated folder
The published folder can be made available at a publicly accessible $REPO_URL using any method:
- By running termux-apt-repository on a web server directly.
- Using rsync: rsync --delete -r <apt-repository-directory> your.host:path/to/folder.
- Creating a zip or tar file and unpacking it at a web server.
- Any other creative way.
It can also be published using e.g. GitHub pages.
Accessing the repository
With the created <apt-repository-directory> available at $REPO_URL, users can access repo by creating a file:
$PREFIX/etc/apt/sources.list.d
containing the single line:
deb [trusted=yes] $REPO_URL termux extras
If the published $REPO_URL is https, users must first install the apt-transport-https package which is not preinstalled (likely to come preinstalled in the future).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for termux_apt_repo-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e32202be21c744306d8821da73ef1e4a121a165ac08ea5904653bdb7dff1f377 |
|
MD5 | 7d12de42c8e763ad0df7018d5f1342fd |
|
BLAKE2-256 | 2dc163e5de169d9691066e38db0b88471edd1716af58324d5da5b2695baab8fb |