Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added option to build local RPM package for Fedora #42

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

erik96
Copy link
Contributor

@erik96 erik96 commented Jun 3, 2024

Note

Added the ability to build local RPM for installation on RPM based distributions.

Build local RPM for Fedora

This is using cargo-generate-rpm

cargo install cargo-generate-rpm
cargo build --release
cargo generate-rpm

The generated RPM will be located here: target/generate-rpm.

Install and run local RPM

cd target/generate-rpm/
sudo dnf localinstall rencfs-xxx.x86_64.rpm

Tip

The destination of the binary is set in the [package.metadata.generate-rpm] options inside the Cargo.toml file.
By default, the installation location is set to /usr/bin/rencfs.
DNF will know where the binary is installed and it will remove it upon unistallation:
sudo dnf remove rencfs

@radumarias radumarias merged commit a34a74d into xoriors:main Jun 3, 2024
1 of 2 checks passed
srzamfir pushed a commit to srzamfir/rencfs that referenced this pull request Aug 22, 2024
Added option to build local RPM package for Fedora
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants