Building Perl DBD::Oracle RPM packages for Enterprise Linux

Introduction

One of the many “hats” I wear in my job is an Oracle database administrator. In this role I write a number of Perl scripts that interact with the Oracle DB, and are used for purposes such as updating data and automating maintenance tasks. Over the years I’ve built up a fairly large library of scripts that I can clone off of when I need something new. With Perl and Oracle, one uses the DBI module for Oracle, DBD::Oracle. I’ve mostly used this on Red Hat systems—Enterprise Linux or EL, as I will refer to it here—distributed with an RPM package (instead of being installed using CPAN). Perhaps because it requires the installation of closed-source Oracle software, there aren’t pre-built RPMs of DBD::Oracle; I’ve always had to build these myself, using an RPM spec file I inherited from a colleague. However, I’ve wanted to revisit this and find a spec file from a source outside of work, one that I could use for experimentation in personal projects, as well as providing an improved version for my work. I was able to find a spec file from a public source, make some improvements, and build the packages for Enterprise Linux versions 7 through 10. This post documents those steps.

Continue reading

Automated UEFI Network Installation of Debian with GRUB2 and Preseed

Introduction

For a number of years, I’ve performed numerous Linux network installations on “legacy” BIOS systems with TFTP and PXELinux. This has been convenient when I’ve needed to build a lot servers, and has worked well when paired with Preseed automated installations on Debian systems or Kickstart automated installations on Enterprise Linux systems. However, BIOS has largely been superseded by UEFI; for better or worse, all computers now ship with UEFI firmware. It is also the default firmware mode on VMWare ESXi. With UEFI, PXELinux no longer works; now you must use GRUB2 over PXE. Recently I decided I wanted to learn how to do this with Debian, as I needed to install Debian 13/Trixie on four identical HPE ProLiant servers running UEFI firmware and wanted to do automated Preseed installations, as opposed to installing the OS manually on each server. This post explains how I was able to get this to work.

Continue reading