Debian repository

Hi everyone,

I was getting a bit tired of manually upgrading Gitea, so I initially considered writing an Ansible playbook to automate the process.

However, after some research, I discovered Gitea’s fantastic feature of hosting Debian repositories and decided to build my own APT repository instead.

Since this is my first time building a Debian package, it’s far from perfect, but I plan to improve it over time. Currently:

:white_check_mark: No package signing yet (will be added later)

:white_check_mark: No user or config files are created

:white_check_mark: It simply replaces the binary under /opt/gitea/bin/

:white_check_mark: Comes with a systemd unit that expects Gitea to run under the gitea user

How to Install

If you want to try it, just add the following line to /etc/apt/sources.list.d/gitea.list:
deb [trusted=yes] https://git.24unix.net/tracer/gitea-deb/raw/branch/apt-repo/ ./

Then update and install:
apt update && apt install gitea

If you prefer not to install binaries from a third party (which I totally understand – I’m neither a Debian maintainer nor affiliated with Gitea), you can build the packages yourself.

Just clone:

Maybe someone finds this useful! :slightly_smiling_face:

Edit: There a currently packages for AMD64 and ARM64.

1 Like