I tried once, very briefly, to find a binary package for cwm on RHEL7. Maybe I was bored, or maybe I was just curious, but I figured out how to compile the cwm portable on Linux. It turned out to be a simple process of figuring out what packages were required to build cwm from source.

The first step is to install all the necessary packages. Now this list may very well be different on your system, as I may have already had requisite packages installed.

Install the following packages:

  • cpp
  • gcc
  • git
  • byacc
  • freetype
  • freetype-devel
  • libXft-devel
  • libX11-devel
  • libXft-devel
  • libXrandr-devel
  • libXinerama git
  • xorg-x11-server-utils

Next up, let’s get the source and compile it:

git clone https://github.com/chneukirchen/cwm.git
cd cwm/
make install

You may have to run the make install as root, in order to install the binary in /usr/local/bin.

Read about a simple CWM config here.

Has been tested on RHEL6 and RHEL7