Quick install with all dependencies for debian:
curl -L https://raw.githubusercontent.com/MarcoKorinth/dwm/main/quickinstall.sh | sudo bash
On a fresh system it might be useful to add contrib non-free
to all entries in /apt/sources.list
First install all prerequisites:
sudo apt install make gcc libx11-dev libxft-dev libxinerama-dev xorg
Download latest dwm version (all versions) and extract:
wget https://dl.suckless.org/dwm/dwm-6.5.tar.gz
tar -xfc dwm*.tar.gz
DWM can be build with sudo make clean install