B20 legacy branch

What is "RPM"?

RPM, the RedHat Package Manager, is a useful utility for managing the installation of complex packages. It works on most platforms; you do not need to run RedHat Linux to use rpm.

I have been alerted that this port does not work correctly if you are using "text" mounts. The temporary workaround is to use "binary" mounts. Eventually, I'll have time to complete this port to cygwin, by ensuring that the "fopen()" commands in the sourcecode use O_BINARY when it is appropriate.

How to install the binary kit:

  1. download, and save it somewhere <path-to-tarball>
  2. cd /
  3. bzip2 -dc <path-to-tarball>/rpm-3.0.2-cygwinb20.tar.bz2 | tar xvf -
  4. rpm --initdb
  5. touch /etc/mtab

Warning: before unpacking the tarball in step 3, make sure that the following four files do not exist.

How to build from source:

First, you need to build and install the "gettext" and "Berkeley db" libraries

Then, do the following:

  1. download the source tarball and the patch. Save them somewhere handy. <path-to-tarball>
  2. cd /usr/local/src
  3. gzip -dc <path-to-tarball>/rpm-3.0.2.tar.gz | tar xvf -
  4. cd /usr/local/src/rpm-3.0.2
  5. patch -p1 < <path-to-tarball>/rpm-3.0.2-cygwinb20.patch
  6. cp misc/libgettext.h intl/libgettext.h
  7. LIB='-L/usr/local/lib' CPPFLAGS='-I/usr/local/include' ./configure --prefix=/usr/local
  8. make
  9. make tar
    NOTE: "make install" doesn't seem to work
  10. mv /tmp/rpm-3.0.2.tar /usr/local/src/rpm-3.0.2-cygwinb20.tar
  11. cd /
  12. tar xvf /usr/local/src/rpm-3.0.2-cygwinb20.tar
    see warning below
  13. rpm --initdb
  14. touch /etc/mtab

Warning: before unpacking the tarball, make sure that the following four files do not exist.

Download version 3.0.2 for cygwin-b20.1

Original sourcecode:

Patch:

Readme:

Binary:


B20 Home

Obsolete CygUtils Home


Last modified: Sat Feb 05 18:41:35 Eastern Standard Time 2000