# Manage installation questions

```json metadata
{
  "schema_version": 2,
  "title": "Manage installation questions",
  "description": "Describes Redis Software installation questions and how to answer them automatically.",
  "categories": ["docs","operate","rs"],
  "tableOfContents": {"sections":[{"id":"installation-questions","title":"Installation questions"},{"children":[{"id":"answer-yes-to-all-questions","title":"Answer yes to all questions"},{"id":"configure-file-to-answer","title":"Configure file to answer"}],"id":"answer-install-questions-automatically","title":"Answer install questions automatically"}]}

,
  "codeExamples": []
}
```


Several questions are displayed during the Redis Software installation process.

Here, you'll find a list of these questions and learn how to automatically answer these questions to perform a silent install.

## Installation questions

Several questions appear during installation:

- **Linux swap file** - `Swap is enabled. Do you want to proceed? [Y/N]?`

    We recommend that you [disable Linux swap](https://redis.io/docs/latest/operate/rs/installing-upgrading/configuring/linux-swap.md) in the operating system configuration
    to give Redis Software control of the memory allocation.

- **Automatic OS tuning** - `Do you want to automatically tune the system for best performance [Y/N]?`

    To allow the installation process to optimize the OS for Redis Software, answer `Y`.
    The installation process prompts you for additional information.

    The `/opt/redislabs/sbin/systune.sh` file contains details about the tuning process.

- **Network time** - `Do you want to set up NTP time synchronization now [Y/N]?`

    Redis Software requires that all cluster nodes have synchronized time.
    You can either let the installation process configure NTP
    or you can [configure NTP manually](https://redis.io/docs/latest/operate/rs/clusters/configure/sync-clocks.md).

- **Firewall ports** - `Would you like to open RedisLabs cluster ports on the default firewall zone [Y/N]?`

    Redis Software requires that all nodes have [specific network ports](https://redis.io/docs/latest/operate/rs/networking/port-configurations.md) open.
    To open the ports, you can:

    - Answer `Y` to let the installation process open these ports.
    - Answer `N` and configure the firewall manually for [RHEL/CentOS firewall](https://redis.io/docs/latest/operate/rs/installing-upgrading/configuring/centos-rhel-firewall).
    - Answer `N` and configure the firewall on the node manually for your OS.

- **Installation verification (rlcheck)** - `Would you like to run rlcheck to verify proper configuration? [Y/N]?`

    Run the `rlcheck` installation verification to make sure that the installation completed successfully.
    If you want to run this verification at a later time, you can run:
    
    ```sh
    /opt/redislabs/bin/rlcheck
    ```

- **User already exists** - `The user 'redislabs' already exists, which may lead to problems if it wasn't configured correctly. Would you like to proceed with the installation? (Y/N)?`

- **Group already exists** - `The group 'redislabs' already exists, which may lead to problems if it wasn't configured correctly. Would you like to proceed with the installation? (Y/N)?`

- **Update PATH** - `Add Redis-Enterprise paths to $PATH variable (recommended) [Y/N]?`

## Answer install questions automatically

To perform a silent (or automated) install, answer the questions when you start the [install](https://redis.io/docs/latest/operate/rs/installing-upgrading/install/install-on-linux).  

### Answer yes to all questions

To automatically answer `yes` to all questions (which accepts the default values), run the [installation script](https://redis.io/docs/latest/operate/rs/installing-upgrading/install/install-script) with the `-y` parameter:

```bash
./install.sh -y
```

### Configure file to answer

Use an answer file to manage your response:

1. Create a text file to serve as an answer file.

    The answer file can contain any of the following installation question parameters. If a parameter is not included in the file, the installation script will ask for your answer.

    | Parameter | Values | Description |
    |-----------|--------|-------------|
    | `firewall` | `yes`<br />`no` | Configure firewall and open required Redis ports. |
    | `ignore_existing_osuser_osgroup` | `yes`<br />`no` | Proceed if redislabs user/group already exists. |
    | `ignore_master_version` | `yes`<br />`no` | Continue the upgrade even if the primary node isn't upgraded. If `no`, stops installation if the primary node hasn't been upgraded. |
    | `ignore_swap` | `yes`<br />`no` | Continue even if swap is enabled. If `no`, stops installation if swap is enabled. |
    | `ntp` | `yes`<br />`no` | Configure NTP for time synchronization. |
    | `rlcheck` | `yes`<br />`no` | Run `rlcheck` after installation to validate the system. |
    | `update_env_path` | `yes`<br />`no` | Add Redis Software paths to the PATH environment variable. |
    | `systune` | `yes`<br />`no` | Automatically tune system performance (CPU, sysctl). If `yes`, answers `yes` to all system tuning questions. |

    Example answer file:

    ```sh
    ignore_swap=no
    systune=yes
    ntp=no
    firewall=no
    rlcheck=yes
    ignore_existing_osuser_osgroup=no
    update_env_path=no
    ignore_master_version=no
    ```

1. Run the [installation script](https://redis.io/docs/latest/operate/rs/installing-upgrading/install/install-script) with the `-c` command-line option and add the path to the answer file.

    For example:

    ```sh
    ./install.sh -c /home/user/answers
    ```


