---
title: "Install Utility in Rescue"
sidebar_label: "Install Utility in Rescue"
sidebar_position: 10
description: "How to install additional tools in Rescue recovery and diagnostics mode"
---

import Formbricks from '@theme/MDXComponents/Formbricks'
import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
import {TabItemLabel} from '@selectel/docux/components'

# Install Utility in Rescue

[Rescue recovery and diagnostics mode](/dedicated/troubleshooting/boot-to-recovery.mdx) contains  [preinstalled tools for system diagnostics and recovery](https://static.selectel.ru/kb/rescue_utilities_list.pdf).

If you need additional tools, install their packages via the `pacman` package manager.

Packages can be installed:

* from the official Arch Linux [tools repository](https://archlinux.org/packages/);
* the [AUR](https://aur.archlinux.org/packages) repository, where users publish useful tools.

:::warning

Tools are installed to RAM, so all installed tools will be deleted after the server reboots.

:::

<Tabs queryString="install-rescue-tools">
  <TabItem value="archlinux" default>
    <TabItemLabel>
      From the Arch Linux repository
    </TabItemLabel>

    1. [Boot the server in Rescue recovery and diagnostics mode](/dedicated/troubleshooting/boot-to-recovery.mdx).

    2. Mount the file system and expand the `cowspace` partition size, which is used for downloading packages:

       ```bash
       mount -t airootfs -o remount,size=4G /run/archiso/cowspace
       ```

    3. Update the `pacman` package manager cache:

       ```bash
       pacman -Syy
       ```

    4. Install the package:

       ```bash
       sudo pacman -S <package>
       ```

       Specify `<package>` — the package name. You can find the package name in the official [Arch Linux repository](https://archlinux.org/packages/).
  </TabItem>

  <TabItem value="aur-archlinux">
    <TabItemLabel>
      From the AUR repository
    </TabItemLabel>

    Example of installing `arcconf`, a tool for managing a hardware RAID controller. You can install other tools from the [AUR repository](https://aur.archlinux.org/packages)[ similarly](https://aur.archlinux.org/packages).

    1. [Boot the server in Rescue recovery and diagnostics mode](/dedicated/troubleshooting/boot-to-recovery.mdx).

    2. Mount the file system and expand the `cowspace` partition size, which is used for downloading packages:

       ```bash
       mount -t airootfs -o remount,size=4G /run/archiso/cowspace
       ```

    3. Install the `base-devel` package — a base set of tools for working with packages further:

       ```bash
       sudo pacman -Syu base-devel
       ```

    4. Install `git`:

       ```bash
       pacman -S git
       ```

    5. Change to the directory for temporary file storage:

       ```bash
       cd /tmp
       ```

    6. Clone the repository to install the package:

       ```bash
       git clone https://aur.archlinux.org/arcconf.git/
       ```

       Here `https://aur.archlinux.org/arcconf.git/` — the repository to clone. You can find it on the package page in the **Git Clone URL \*\*\*\* line**.

    7. Change to the `arcconf` directory:

       ```bash
       cd arcconf
       ```

    8. Switch to the branch with the latest commit.

       ```bash
       git checkout 98153da254e10bb2655ad1c7e0e118b2dd7fd18c
       ```

       Here `98153da254e10bb2655ad1c7e0e118b2dd7fd18c` — the commit ID. You can find it on the package page: click **View PKGBUILD**, go to the **commit** tab, and view the value in the **commit \*\*\*\* line**.

    9. Create a `user` user with permissions for the `/tmp/arcconf` directory:

       ```bash
       useradd -m user
       sudo chown -R user /tmp/arcconf
       sudo chmod -R 755 /tmp/arcconf
       ```

    10. Switch to the `user` user:

        ```bash
        su user
        ```

    11. Run the `makepkg` tool; it will check dependencies and build the package in the current directory:

        ```bash
        makepkg
        ```

    12. View the directory content:

        ```bash
        ls
        ```

        A list of package files will appear in the response. For example:

        ```bash
        arcconf-4.17.00.26540-1-x86_64.pkg.tar.zst        arcconf_v3_07_23980.zip  src
        arcconf_B26540.zip                                pkg
        arcconf-debug-4.17.00.26540-1-x86_64.pkg.tar.zst  PKGBUILD
        ```

        Here `arcconf-4.17.00.26540-1-x86_64.pkg.tar.zst` is the file name to install the tool.

    13. Copy the file name for installation.

    14. Finish the session with the `user` user:

        ```bash
        exit
        ```

    15. Install `arcconf`:

        ```bash
        pacman -U <file_name>
        ```

        Specify `<file_name>` — the file name you copied in step 13.
  </TabItem>
</Tabs>

<Formbricks />
