2

I'm relatively inexperienced with Linux, other than the basics. But my company have asked me to find a way to setup a repository hosted on Ubuntu for rpm & and deb packages. Now I've finally managed to get a public apt repository working for the deb packages, but cannot work out a way to do it for RPM packages. especially since Createrepo is no longer being distributed for Ubuntu 20.04.

Some suggestions I've seen are to just setup a VM of Fedora etc and make the repository there, then just copy the files over to ubuntu. But Would that work? is there a better way to do it?

We've considered using a package hoster but my employer would still prefer that we host them ourselves. at least for now.

Any help would be much appreciated.

1 Answers1

0

I too was bitten by the unavailability of createrepo(-c) on Ubuntu 20.04. I think the old createrepo tool used to be available and got removed, because it was installed prior to upgrading to Ubuntu 20.04.2. Anyway, the solution I chose to pursue was to package it for GNU Guix, a distribution agnostic package manager. Provided you have it installed (see: https://guix.gnu.org/manual/en/html_node/Installation.html) and up-to-date (using guix pull), you should be able to:

$ guix install createrepo-c
[...]
$ createrepo_c --version
Version: 0.17.4 (Features: LegacyWeakdeps )

On top of Ubuntu 20.04, or any other GNU/Linux distribution for what it's worth.

Apteryx
  • 498