Install the utility in Rescue
Recovery and Diagnostic Mode Rescue contains pre-installed tools for system diagnostics and recovery.
If you need additional tools, install their packages through the package manager pacman
.
Packages can be installed:
- from the official repository with additional tools Arch Linux;
- repository AUR In which 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 partition size extension
cowspace
designed for downloading packages:mount -t airootfs -o remount,size=4G /run/archiso/cowspace
-
Update the package manager cache
pacman
:pacman -Syy
-
Install the package:
sudo pacman -S <package>
Specify
<package>
— package name. You can see the package name in the official repository Arch Linux.
Installation example arcconf
— tool to manage the hardware RAID controller. You can install other tools from the repository in the same way AUR.
-
Mount the file system with the partition size extension
cowspace
designed for downloading packages:mount -t airootfs -o remount,size=4G /run/archiso/cowspace
-
Install the package
base-devel
— basic set of tools for further work with packages:sudo pacman -Syu base-devel
-
Set
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/
— repository for cloning. It can be viewed on the package page in the line Git Clone URL. -
Go to the catalog
arcconf
:cd arcconf
-
Switch to the branch with the last commit.
git checkout 98153da254e10bb2655ad1c7e0e118b2dd7fd18c
Here.
98153da254e10bb2655ad1c7e0e118b2dd7fd18c
— commit identifier. It can be viewed on the package page: click View PKGBUILDclick on the tab commit and look at the value on the line commit. -
Create a user
user
with directory permissions/tmp/arcconf
:useradd -m user
sudo chown -R user /tmp/arcconf
sudo chmod -R 755 /tmp/arcconf -
Switch to user
user
:su user
-
Run the tool
makepkg
, it will check the dependencies and build the package in the current directory:makepkg
-
Look at the contents of the catalog:
ls
A 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.zst
— the name of the file for installing the tool. -
Copy the file name of the file to be installed.
-
Finalize the user
user
:exit
-
Set
arcconf
:pacman -U <file_name>
Specify
<file_name>
— the file name you copied in step 13.