Hacks

Not much here at present, most of my hacks are too frightening to release on an unsuspecting public.

One that is useful is a script to create a custom rpm build environment in a users home directory.
This allows rpms to be built by mortal users.

Mike Harris of Red Hat wrote the original .rpmmacros and .rpmrc files. I simply edited them to suit my needs, and created the rpmsetup.sh script to automate directory creation and installation.

Simply download the rpm_environment.tar.gz file to your home directory:


UPDATE DISTRO

A set of scripts to create an updated set of rpm files which can be used to create updated installation CDs for Red Hat Linux. These scripts simply update the rpm build tree, regenerate the hard drive lists, and create updated ISO images. Most useful when there are only a few updates, and there is no need to completely rebuild the installation media.

UPDATE DISTRO-v0.2

Updated for Red Hat 7.3


BUILD DISTRO

A set of scripts to rebuild the Red Hat install media. May be used to generate completely rebuilt installer images, including updated RPM files. These scripts generate new boot images, run split distro, create new hdlist files, etc. Use these to rebuild the installer from the ground up.

BUILD DISTRO-v0.2

Updated for Red Hat Linux 7.3

BUILD DISTRO-v0.3

Updated for Red Hat Linux 8.0

BUILD DISTRO-v4.0

Updated for Red HatLinux 9

BUILD DISTRO-Fedora-v0.1

Updated for Fedora Core 1

(Only for Fedora Core 1, no support for previous Red Hat Linux versions)


RECOVER RPM DATA BASE

Lost your rpm database? If so, recover_rpm_db.sh might be able to help. Recent versions of rpm install a cron job that runs daily to create a list of installed rpms in /var/log/rpmpkgs. This script uses that file, or any other file containing a list of rpms, to rebuild a new rpm database. Simply run the script with arguments of -f {file_containing_rpm_list} -p {path(s)_containing_packages.rpm} (Multiple paths may be searched by providing a space seperated list of search paths.)

This script is intended for disaster recovery only.

If the existing rpm database is corrupt, or if you intend to rebuild the database completely, you may want to reinitialize the database first by running 'rpm --initdb'


Return to homepage