summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrystal <crystal@noreply.codeberg.org>2023-07-25 02:40:12 -0600
committercrystal <crystal@noreply.codeberg.org>2023-07-25 02:40:12 -0600
commitb5a068e8da865d8cc2392bd2ccf876396e07bd1b (patch)
treebe366666ef67e3dd10b37887f277e8820d25508f
parent13a2d485fa1f181f48d76b9104577c3be4e6ed94 (diff)
Add repo setup instructions
-rw-r--r--README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index 49a47d5..9aea761 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,17 @@ These packages are easy to use! Just download your preferred package, install it
The default username for Forgejo's user is `forgejo`, but it can easily be changed prior to installation, for example if you would rather run Forgejo as user `git`. All you need to do is download the files from the `etc` folder in this repository, put them in the respective places on your system, and customize them to your liking. When you use apt to install the Forgejo package, it will create a new user with the specified settings.
+## Updates through apt
+You can install updates for this package along with all the other software on your system with `apt` thanks to the Debian package registry added in Forgejo v1.20. Run the following commands to set up the repository on your system:
+```sh
+sudo apt install wget apt-transport-https
+wget --content-disposition https://code.forgejo.org/crystal/-/packages/debian/forgejo-deb-repo/0-0/files/2637
+sudo apt install ./forgejo-deb-repo_0-0_all.deb
+sudo apt update
+sudo apt upgrade
+```
+If you already installed Forgejo using a package from the releases tab, it will now be automatically updated along with the rest of your system packages. If you have not yet installed Forgejo, you can now install it with `apt install forgejo(-sqlite|-bin)`
+
## Removal
Removing Forgejo itself from your system is simple, just `sudo apt remove forgejo(-sqlite|-bin)`. If you use `sudo apt purge`, the related configuration files will also be removed from `/etc/forgejo`. To avoid accidentally destroying user data, other things including the Forgejo user will be left behind. The following commands will remove everything from your system.
```sh
@@ -23,3 +34,5 @@ sudo rm -rf /etc/forgejo /etc/default/forgejo /etc/systemd/system/forgejo.servic
sudo deluser forgejo
```
If you customized the user or home directory before installing Forgejo, make sure to adjust the commands accordingly. If you get an error saying the files you are trying to delete do not exist, don't worry about it.
+
+If you installed the `apt` repository and you would like to remove it, use `sudo apt purge forgejo-deb-repo forgejo-deb-repokey`