Install xfce4 on Debian

This is how I install xfce4 on a new Debian:

yes | \
  for x in `apt-cache search xfce4 \
      | sort \
      | awk 'BEGIN { FS = " - " } { print $1 }'`; do \
    apt install $x; \
  done

Or if you prefer a less transactional install, you can use xargs

apt-cache search xfce4 \
  | sort \
  | awk 'BEGIN { FS = " - " } { print $1 }' \
  | xargs apt install -y

debian (5) awk (1) apt (1) xargs (1) xfce4 (1)