【问题标题】:How to install php rpm from remi's repo on RHEL 8 from ks.cfg file kickstart如何从 ks.cfg 文件 kickstart 在 RHEL 8 上从 remi 的 repo 安装 php rpm
【发布时间】:2021-06-19 11:57:41
【问题描述】:

如何从ks.cfg文件kickstart在RHEL 8上从remi的repo安装php rpm?

我尝试使用上面的文件,但在安装过程中失败并出现错误

#version=RHEL8
bootloader --location=mbr --append="rhgb quiet crashkernel=auto"
zerombr
clearpart --all --initlabel
autopart

# Use graphical install
graphical

# Use CDROM installation media
cdrom

# Keyboard layouts
keyboard --vckeymap=fr-oss --xlayouts='fr (oss)'

# System language
lang fr_FR.UTF-8

# Network information
network --device=link --onboot=yes --hostname=computer --bootproto=static --ip=192.168.1.151 --netmask=255.255.255.0 --activate

# Add local Repositories
repo --name="BaseOS" --baseurl=file:///run/install/repo/BaseOS
repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream
repo --name="Ansible29" --baseurl=file:///run/install/repo/Ansible29
repo --name="Yarn" --baseurl=file:///run/install/repo/Yarn
repo --name="Epel" --baseurl=file:///run/install/repo/Epel
repo --name="Remi" --baseurl=file:///run/install/repo/Remi

# Root password
rootpw $1$Hvsdfsdf1tXYdfdsfsdfsfec$qtWxFDzzBsfdfdfs2Xxnn.rfwZzX0 --iscrypted
# administrateur user
user --name=administrateur --iscrypted --password=$1$Hv1tXYec$qtfdgdfWxFDzzB2dsdfdgdXxnn.rfwZzX0

auth --passalgo=sha512 --useshadow

# X Window System configuration information
xconfig  --startxonboot

# Run the Setup Agent on first boot
firstboot --disable

%pre --interpreter=/usr/bin/bash --log=/var/log/pre-installation-anaconda.log
%end

# Reboot auto after install
reboot

# SeLinux activation
selinux --disabled

# Intended system purpose
syspurpose --sla="Premium" --usage="Production"

# System timezone
timezone Europe/Paris --isUtc --nontp


module --name=php --stream=7.2 --disable
module --name=php --stream=remi-7.2

%packages --excludedocs
@^minimal-environment
@base-x
@GNOME
php
%end

%addon com_redhat_kdump --disable
%end

%post --interpreter=/usr/bin/bash --log=/var/log/post-installation-anaconda.log
%end

%anaconda
pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty
pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty
%end

enter image description here

但在 anaconda 组或模块 php:remi-7.2 中未找到:§

它不依赖于 rhel 版本而不是 php 版本

也许我错过了其他东西

【问题讨论】:

  • 不知道 /run/install/repo/Remi 的内容是什么?但是对于模块,您需要“remi-modular”和“remi-safe”(就像您需要 BaseOS 和 AppStream 进行分发一样)
  • 我找到了正确的解决方案,我需要简单地使用 EPEL 的模块化 repo 而不是标准

标签: php module rhel8 kickstarter


【解决方案1】:

voici ma 解决方案最终

#version=RHEL8
bootloader --location=mbr --append="rhgb quiet crashkernel=auto"
zerombr
clearpart --all --initlabel
autopart

# Use graphical install
graphical

# Use CDROM installation media
cdrom

# Keyboard layouts
keyboard --vckeymap=fr-oss --xlayouts='fr (oss)'

# System language
lang fr_FR.UTF-8

# Network information
network --device=link --onboot=yes --hostname=toto--bootproto=static --ip=192.168.1.151 --netmask=255.255.255.0 --activate

# Add local Repositories
repo --name="BaseOS" --baseurl=file:///run/install/repo/BaseOS
repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream
repo --name="Ansible29" --baseurl=file:///run/install/repo/Ansible29
repo --name="Yarn" --baseurl=file:///run/install/repo/Yarn
repo --name="RemiModular" --baseurl=file:///run/install/repo/RemiModular
repo --name="RemiSafe" --baseurl=file:///run/install/repo/RemiSafe
repo --name="Epel" --baseurl=file:///run/install/repo/Epel

# Root password
rootpw $dddd--iscrypted
# administrateur user
user --name=administrateur --iscrypted --password=$ddddddd

auth --passalgo=sha512 --useshadow

# X Window System configuration information
xconfig  --startxonboot

# Run the Setup Agent on first boot
firstboot --disable

%pre --interpreter=/usr/bin/bash --log=/var/log/pre-installation-anaconda.log
%end

# Reboot auto after install
reboot

# SeLinux activation
selinux --disabled

# Intended system purpose
syspurpose --sla="Premium" --usage="Production"

# System timezone
timezone Europe/Paris --isUtc --nontp

%packages
@^minimal-environment
@base-x
@GNOME
@php:remi-7.2/common
@composer:2/common
@postgresql:12/server
%end

%addon com_redhat_kdump --disable
%end

%post --interpreter=/usr/bin/bash --log=/var/log/post-installation-anaconda.log
%end

%anaconda
pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty
pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty
%end

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-06-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-05-26
    • 1970-01-01
    • 2012-12-15
    • 2021-09-23
    相关资源
    最近更新 更多