You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[suggest] add a .spec file for packing rpm in Copr #3
Hi @thangckt!
The compiled binaries include a .rpm package that should work in redhat.
Is there a specific reason for which you need to use Copr? Recompiling this project could take several minutes every time you want to upgrade, so I think that the precompiled .rpm is preferable.
The compiled binaries include a .rpm package that should work in redhat.
yes, i know that and your rpm work well on my redbat based machine.
Recompiling this project could take several minutes every time you want to upgrade
Copr compiles and saves rpm just as you did here. Whenever user install package, dnf just pull rpm file and install (not compile at the installation time).
By enabling a Copr repo, package manager (such as dnf) can autodetect new release and install it in a simple way; instead of download rpm locally and install it manually.
Copr compiles and saves rpm just as you did here. Whenever user install package, dnf just pull rpm file and install (not compile at the installation time).
I see, it seems I misunderstood what Copr does. Is this flow correct?
Developer creates .spec file and uploads it to Copr
Copr downloads the source files and builds them
Copr hosts the resulting rpm indefinitely
The user downloads the rpm from Copr
By enabling a Copr repo, package manager (such as dnf) can autodetect new release and install it in a simple way; instead of download rpm locally and install it manually.
If what you want is automatic updates, wouldn't it be much easier for me to just host an RPM repo and upload the new releases there?
Sorry if my questions are dumb, I don't use Fedora/Redhat so I don't understand the point of Copr.
You are almost right. Except that, the user does not need to download rpm and install manually, package manager included in distro will handle that.
wouldn't it be much easier for me to just host an RPM repo and upload the new releases there?
It will be nice if you can do that :). But that is what Copr already did for you totally free, why you have to pay afforts to host and maintain such thing. Copr can intergrate with github to auto build and release every time you push/pull/release your github repo/branch.
I even can use github action to generate my own rpm repo, which can regularly update many rpms I collect around. It just works fines, however, there will be problem if the rpm size larger than 100 MB.
there will be problem if the rpm size larger than 100 MB
I hadn't thought of that... I was planning on using GitHub Pages since the repo seems to consist of static files, but that size limit is too small.
Hosting the repo in Copr seems like a good option. Does it allow uploading a precompiled .RPM?
I don't know, you can look at their docs. I actually maintained my rpm repo on github, until I encounter size limit when get your rpm, so I find Copr as a better alternative.
I managed to make it work using Firebase :)
You should now be able to install from the RPM repo by following the steps in the README.
Edit:
For future reference in case anyone finds this comment useful: do NOT use Firebase hosting. While the file limit (2GB) is enough, the maximum daily data transfer is only 360 MB. For my package size (~120MB) this would mean that only 3 users/day can download the app.
GitHub Pages and Cloudflare Pages are also not viable due to the maximum file size (100MB and 25MB).
I'm currently using Cloudflare R2, as the free tier offers 10GB of storage and unlimited data transfer. The only limiting factor are the read operations (10 million / month), but at the current scale of the repository that should be enough.
Activity
pol-rivero commentedon Jun 29, 2025
Hi @thangckt!
The compiled binaries include a
.rpmpackage that should work in redhat.Is there a specific reason for which you need to use Copr? Recompiling this project could take several minutes every time you want to upgrade, so I think that the precompiled
.rpmis preferable.thangckt commentedon Jul 1, 2025
yes, i know that and your rpm work well on my redbat based machine.
Copr compiles and saves rpm just as you did here. Whenever user install package, dnf just pull rpm file and install (not compile at the installation time).
By enabling a Copr repo, package manager (such as dnf) can autodetect new release and install it in a simple way; instead of download rpm locally and install it manually.
pol-rivero commentedon Jul 1, 2025
I see, it seems I misunderstood what Copr does. Is this flow correct?
.specfile and uploads it to CoprIf what you want is automatic updates, wouldn't it be much easier for me to just host an RPM repo and upload the new releases there?
Sorry if my questions are dumb, I don't use Fedora/Redhat so I don't understand the point of Copr.
thangckt commentedon Jul 1, 2025
You are almost right. Except that, the user does not need to download rpm and install manually, package manager included in distro will handle that.
It will be nice if you can do that :). But that is what Copr already did for you totally free, why you have to pay afforts to host and maintain such thing. Copr can intergrate with github to auto build and release every time you push/pull/release your github repo/branch.
I even can use github action to generate my own rpm repo, which can regularly update many rpms I collect around. It just works fines, however, there will be problem if the rpm size larger than 100 MB.
pol-rivero commentedon Jul 1, 2025
I hadn't thought of that... I was planning on using GitHub Pages since the repo seems to consist of static files, but that size limit is too small.
Hosting the repo in Copr seems like a good option. Does it allow uploading a precompiled .RPM?
Edit: It seems that Firebase Hosting has a 2GB file limit, I'll see if I can make it work.
thangckt commentedon Jul 1, 2025
I don't know, you can look at their docs. I actually maintained my rpm repo on github, until I encounter size limit when get your rpm, so I find Copr as a better alternative.
pol-rivero commentedon Jul 2, 2025
I managed to make it work using Firebase :)
You should now be able to install from the RPM repo by following the steps in the README.
Edit:
For future reference in case anyone finds this comment useful: do NOT use Firebase hosting. While the file limit (2GB) is enough, the maximum daily data transfer is only 360 MB. For my package size (~120MB) this would mean that only 3 users/day can download the app.
GitHub Pages and Cloudflare Pages are also not viable due to the maximum file size (100MB and 25MB).
I'm currently using Cloudflare R2, as the free tier offers 10GB of storage and unlimited data transfer. The only limiting factor are the read operations (10 million / month), but at the current scale of the repository that should be enough.
thangckt commentedon Jul 2, 2025
@pol-rivero awsome
and I have made it available in Copr now :)
another way to make your repo distro-independent is consider to put it on
flathubAddress review feedback: fix overflow toggle, no-resolution state, docs
Lock repository and isCommitting during manual commit restored-select…