> ## Documentation Index
> Fetch the complete documentation index at: https://tally.wharflab.com/llms.txt
> Use this file to discover all available pages before exploring further.

# hadolint/DL3034

> Non-interactive switch missing from `zypper` command: `zypper install -y`.

Non-interactive switch missing from `zypper` command: `zypper install -y`.

| Property | Value         |
| -------- | ------------- |
| Severity | Warning       |
| Category | Best Practice |
| Default  | Enabled       |
| Auto-fix | Yes (`--fix`) |

## Description

Omitting the non-interactive switch causes the command to fail during the build process because `zypper` would expect manual input. Use the `-y` or
the equivalent `--no-confirm` flag to ensure unattended operation inside a Dockerfile.

## Examples

### Problematic code

```dockerfile theme={null}
RUN zypper install httpd=2.4.46 && zypper clean
```

### Correct code

```dockerfile theme={null}
RUN zypper install -y httpd=2.4.46 && zypper clean
```

## Auto-fix

Adds `-n` (non-interactive) flag to `zypper install`, `in`, `remove`, `rm`, `patch`, `source-install`, and `si` commands.

## Reference

* [hadolint/DL3034](https://github.com/hadolint/hadolint/wiki/DL3034)
