Configuring the Installation Environment
- Log in as the root user and install kernel development tools.
1yum -y groupinstall "Development Tools"
- Install other dependencies.
1yum -y install audit-libs-devel binutils-devel elfutils-devel kabi-dw ncurses-devel newt-devel numactl-devel openssl-devel pciutils-devel perl perl-devel python2 python3-docutils xmlto xz-devel elfutils-libelf-devel libcap-devel libcap-ng-devel llvm-toolset libyaml libyaml-devel kernel-rpm-macros kernel-abi-whitelists java-devel python3-devel libnl3-devel
If libyaml-devel cannot be installed, download its RPM package and install it.
1rpm -ivh https://repo.almalinux.org/almalinux/8/PowerTools/aarch64/os/Packages/libyaml-devel-0.1.7-5.el8.aarch64.rpm
- Add mockbuild.
1useradd -s /sbin/nologin mockbuild
- Install e2fsprogs packages.
- Obtain the RPM packages.
You can download each package separately. If you select all files in zip, you need to log in to the website to batch download the packages.
- Upload the RPM packages to the server.
- Install the RPM packages. If an error is reported during the installation, add --force to the end of the command to forcibly install the RPM packages.
1rpm -ivh libcom_err-1.46.2.wc3-0.el8.aarch64.rpm e2fsprogs-debuginfo-1.46.2.wc3-0.el8.aarch64.rpm libcom_err-debuginfo-1.46.2.wc3-0.el8.aarch64.rpm libcom_err-devel-1.46.2.wc3-0.el8.aarch64.rpm libss-1.46.2.wc3-0.el8.aarch64.rpm libss-debuginfo-1.46.2.wc3-0.el8.aarch64.rpm libss-devel-1.46.2.wc3-0.el8.aarch64.rpm e2fsprogs-libs-1.46.2.wc3-0.el8.aarch64.rpm e2fsprogs-1.46.2.wc3-0.el8.aarch64.rpm e2fsprogs-debugsource-1.46.2.wc3-0.el8.aarch64.rpm e2fsprogs-devel-1.46.2.wc3-0.el8.aarch64.rpm e2fsprogs-libs-debuginfo-1.46.2.wc3-0.el8.aarch64.rpm e2fsprogs-static-1.46.2.wc3-0.el8.aarch64.rpm
- Obtain the RPM packages.
- Set the permissive mode.
- Modify the /etc/selinux/config file.
1vi /etc/selinux/configChange SELINUX=enforcing to SELINUX=permissive.1 2 3 4 5 6 7 8 9 10 11
# Th----is file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=permissive # SELINUXTYPE= can take one of these three values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted
- Reboot the server.
1reoot
- Modify the /etc/selinux/config file.
Parent topic: Change History