Add RPM package #2985

Closed
opened 2026-04-06 04:23:53 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @alexpdp7 on 4/9/2020

This is a WIP, I'm interested in creating a CentOS 8 package for bitwarden_rs that installs a systemd user service using SQLite and provide a COPR dnf/yum repo.

(My thought is that from reading the documentation, I see that bitwarden_rs is meant to be single-user? Having a systemd user service would mean that you could have every user in a system run their own bitwarden_rs easily, but maybe I got this part wrong).

There is no reason this wouldn't work for other CentOS/RHEL/Fedora versions.

The package "works" right now, but it's running with WEB_VAULT_ENABLED=false, it only supports SQLite.

It's also pushing to a COPR repo in my fork. To test it:

$ sudo dnf copr enable koalillo/bitwarden_rs 
$ sudo dnf install bitwarden_rs
$ curl http://localhost:8000/

This is in part a RPM/COPR learning exercise, but I think it would be a cool idea to mainline RPM support. If we merge something like this, it should be easy to set up CI to push new packages to a COPR repo for every release automatically. People then can install it with the two commands above and have it automatically patched with dnf-automatic.

I'm happy to fix more stuff. If you guys don't want to mainline this (I know maintaining more things is never easy), I'm happy to keep this in an external repo.

Also note that at this point:

  • Fedora/CentOS apparently won't accept nightly-based Rust software in their main repos
  • I think this PR manages to evade best practices in all steps of the way. It works, but it's not "good"
*Originally created by @alexpdp7 on 4/9/2020* This is a WIP, I'm interested in creating a CentOS 8 package for bitwarden_rs that installs a systemd user service using SQLite and provide a COPR dnf/yum repo. (My thought is that from reading the documentation, I see that bitwarden_rs is meant to be single-user? Having a systemd user service would mean that you could have every user in a system run their own bitwarden_rs easily, but maybe I got this part wrong). There is no reason this wouldn't work for other CentOS/RHEL/Fedora versions. The package "works" right now, but it's running with `WEB_VAULT_ENABLED=false`, it only supports SQLite. It's also pushing to a COPR repo in my fork. To test it: ``` $ sudo dnf copr enable koalillo/bitwarden_rs $ sudo dnf install bitwarden_rs $ curl http://localhost:8000/ ``` This is in part a RPM/COPR learning exercise, but I think it would be a cool idea to mainline RPM support. If we merge something like this, it should be easy to set up CI to push new packages to a COPR repo for every release automatically. People then can install it with the two commands above and have it automatically patched with dnf-automatic. I'm happy to fix more stuff. If you guys don't want to mainline this (I know maintaining more things is never easy), I'm happy to keep this in an external repo. Also note that at this point: * Fedora/CentOS apparently won't accept nightly-based Rust software in their main repos * I think this PR manages to evade best practices in all steps of the way. It works, but it's not "good"
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#2985