Contributed by deanna on from the apt-get-install-openbsd dept.
Our Software Installation Server had a severe hard disk problem couple of days ago. It served all SuSE Linux RPM’s for our 120 clients by holding an apt4rpm repository. Quite nice, since my linux users can use synaptic to install software themselves using a GUI by having a robust apt-get system underneath, in spite of using an RPM system.
However, since the server (running good old Red Hat 9) became flaky I decided to port that service to OpenBSD. All it actually needs to do is creating the apt repository for all RPM’s and serving them using Apache. The latter is no problem at all, since a secured version of Apache is part of the base system of OpenBSD.
Well, I felt kind of reluctant to ask for an apt-get port for OpenBSD on misc@ ;) - that’s why I had a closer look at this idea first and it turned out the build process of the apt database would only require one perl plus one shell script and one linux binary.
update-apt, written in Perl genbasedir, shell script genpkglist, linux binary
Apart from fixing other little things (md5sum replaced with md5 etc.) the major problem was to get genpkglist running. Fortunately, OpenBSD comes with the linux binary emulation layer, to be enabled with sysctl kern.emul.linux=1. Additionally, I had to install the redhat8-base package and all libraries genpkglist required.
Finally, we now have the apt software repository build process working on and served by OpenBSD, which itself runs only in a virtual machine on our VMWare GSX server … this I call efficient.Stephan A. Rickauer is a Unix Engineer at the Institute of Neuroinformatics at ETH Zurich.
(Comments are closed)