yes

Output something repeatedly. This command is commonly used to answer yes to every prompt by install commands (such as apt-get). More information: <https://www.gnu.org/software/coreutils/yes>.

Debian Debian
RUN apt-get update && \ apt-get install -y coreutils
Ubuntu
RUN apt-get update && \ apt-get install -y coreutils
Alpine
RUN apk add coreutils
Arch Arch Linux
RUN pacman -S --noconfirm coreutils
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y coreutils
CentOS
RUN yum install -y coreutils
Fedora
RUN dnf install -y yes
Raspbian
RUN apt-get update && \ apt-get install -y coreutils
click the source code to copy install yes on any operating system with command-not-found.com