Install the utility in Rescue
The Rescue recovery and diagnostic mode contains pre-installed diagnostic and recovery tools.
If you need additional tools, install their packages via the pacman package manager.
Packages can be installed:
- from the official repository with additional Arch Linux tools;
- AUR repository where users publish useful tools.
The tools are installed in RAM, so after a server reboot, all installed tools will be removed.
From the Arch Linux repository
From the AUR repository
-
Mount the file system with the size extension of the
cowspacepartition intended for package downloads:mount -t airootfs -o remount,size=4G /run/archiso/cowspace -
Update the
pacmanpackage manager cache:pacman -Syy -
Install the package:
sudo pacman -S <package>Specify
<package>— package name. You can view the package name in the official Arch Linux repository.
An example of installing arcconf, a tool for managing a hardware RAID controller. Other tools from the AUR repository can be installed in the same way.
-
Mount the file system with the size extension of the
cowspacepartition intended for package downloads:mount -t airootfs -o remount,size=4G /run/archiso/cowspace -
Install the
base-develpackage, a basic set of tools for further work with packages:sudo pacman -Syu base-devel -
Install
git:pacman -S git -
Navigate to the directory for temporary file storage:
cd /tmp -
Clone the repository to install the package:
git clone https://aur.archlinux.org/arcconf.git/Here
https://aur.archlinux.org/arcconf.git/is the repository to clone. You can see it on the package page under Git Clone URL. -
Navigate to the
arcconfdirectory:cd arcconf -
Switch to the branch with the last commit.
git checkout 98153da254e10bb2655ad1c7e0e118b2dd7fd18cHere
98153da254e10bb2655ad1c7e0e118b2dd7fd18cis the commit identifier. It can be viewed on the package page: click View PKGBUILD, click the commit tab and see the value in the commit line. -
Create a
user userwith permissions for the/tmp/arcconfdirectory:useradd -m user
sudo chown -R user /tmp/arcconf
sudo chmod -R 755 /tmp/arcconf -
Switch to
user user:su user -
Run the
makepkgtool, it will check dependencies and build the package in the current directory:makepkg -
Look at the contents of the catalog:
lsA list of the package files will appear in the response. For example:
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 PKGBUILDHere
arcconf-4.17.00.26540-1-x86_64.pkg.tar.zstis the name of the file to install the tool. -
Copy the file name of the file to be installed.
-
Finalize the
user user:exit -
Install
arcconf:pacman -U <file_name>Specify
<file_name>is the file name you copied in step 13.