CTkDeb
A CustomTkinter app for easily packaging CustomTkinter, Tkinter, and other Python GUI projects into DEB and RPM packages for Linux. It has GUI, CLI, and Python modes. You can create a small DEB or RPM package without deep packaging experience.
Install
pip install CTkDeb[gui]
- Creating DEB packages requires the
dpkg-debtool (pre-installed on most Debian-like systems, probably does not need to be installed separately). - Creating RPM packages requires the
rpmbuildtool.
Run
Run this in the project folder (relative to which the paths in the config are specified)
ctkdeb-gui
GUI
CLI
ctkdeb config.json --create deb
View all arguments:
ctkdeb --help
Python
from ctkdeb import Packager
packager = Packager("config.json")
packager.create_deb()
# or
packager.create_rpm("fedora")
View all supported RPM distros:
from ctkdeb import show_supported_rpm_distros
show_supported_rpm_distros()
Arguments:
| Argument | Type | Description |
|---|---|---|
| json_path | str or dict | Path to the JSON config (or its dict), required |
| project_folder | str | Path to the project folder (if the command is not executed from it) |
| desktop_entry | str | Path to the custom desktop entry (or its text) |
| output_folder | str | Path to the output folder |
FAQ
- Do I need to specify Tkinter and CustomTkinter as dependencies?
No, CTkDeb has already taken care of that; just specify third-party dependencies, if any.
- Can I use CTkDeb to package PyQt projects?
Yes, but you will have to find the correct names for the PyQt packages yourself and specify them in the dependencies. In Project type select Other GUI.
- What about pip and DEB/RPM dependencies?
Pip dependencies are recommended only if they are written in pure Python (e.g., CTkMenuBar). If not, it's better to search for the required dependency in the distribution repositories and specify it as a DEB or RPM dependency. For example, for Pillow, specify python3-pil for DEB or python3-pillow for RPM (Fedora/Mageia) instead of pillow in the Pip dependencies line.
Other
App icon: Claude Sonnet 5.
Metadata
Release files for CTkDeb 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ctkdeb-0.9.0.tar.gz | 37.2 kB | With provenance | Details for ctkdeb-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ctkdeb-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for ctkdeb-0.9.0-py3-none-any.whl |
Total release size: 73.3 kB
Release files / ctkdeb-0.9.0.tar.gz
| Download URL | ctkdeb-0.9.0.tar.gz |
|---|---|
| Size | 37.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8e8e2e09afbf34467d0be87051542968d6a4ff4b434f2793388cbe83de04d81
|
|
BLAKE2b-256 checksum How to use checksums |
5ceeb9474012b6399c67cb58474ecdb0d7f69ec19da81a4572f65081d942a876
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logRelease files / ctkdeb-0.9.0-py3-none-any.whl
| Download URL | ctkdeb-0.9.0-py3-none-any.whl |
|---|---|
| Size | 36.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
34031e603ea776dbae1dfb2f51726257923d3dfe4b015e3aa0d5ddf7cadbb534
|
|
BLAKE2b-256 checksum How to use checksums |
4ed97831d009e2cc5fefc63a9a07cd0d7950511e4d0b64e2de9abbafe1d25154
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logSecurity for CTkDeb 0.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ctkdeb-0.9.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.