epel、remi、その他のリモートリポジトリからパッケージをインポートするには、Kickstartファイルにどのような設定を含める必要がありますか?

epel、remi、その他のリモートリポジトリからパッケージをインポートするには、Kickstartファイルにどのような設定を含める必要がありますか?

Redhatのさまざまな無人インストール用のキックスタートファイルを作成していますが、焦点を合わせるためにCentOS 7を想定します。

私は最小のブートisoを使用しており、ブートオプションの一部としてinst.ks=https://gitlab.com/myrepoinfo/-/raw/main/centos7.cfg inst.text ip=dhcpこの機能を使用できるため、リモートソースからパッケージを検出してインストールすることを除いてDNSが検証され、インストールが成功します。

文書によるとrepo、次の項目でオプションを使用します。

# Setup additional EPEL and Remi repositories 
repo --name=epel --baseurl=http://ftp.cse.buffalo.edu/pub/epel --install
repo --name=remi --baseurl=http://rpms.remirepo.net/enterprise/remi-release-7.rpm --install 

もちろん、これは間違っており、「%packages」の下のすべてのパッケージが見つからないというエラーが発生し、続行しますか(y / n)?

あなたの答えをコピーして貼り付けることができます。リモートソースからHTTPベースのパッケージをインストールできるようにキックスタートファイルに追加する必要がある特定の設定ラインは何ですか?

ベストアンサー1

repo --name=epel --baseurl=http://ftp.cse.buffalo.edu/pub/epel --install

repodataこれはリポジトリのルートを指していないため、正しくありません。これを含むディレクトリを探しています。ディレクトリパスには通常、リリースバージョンとアーキテクチャが含まれます。 EPELリポジトリの場合、これは次のとおりです。

repo --name=epel --baseurl=http://ftp.cse.buffalo.edu/pub/epel/7/x86_64/ --install

repo --name=remi --baseurl=http://rpms.remirepo.net/enterprise/remi-release-7.rpm --install

あなたが指しているので、これはうまくいきません文書、パッケージストアのルートの代わりに。以前のURLと非常によく似ており、次のものが必要です。

repo --name=remi --baseurl=http://rpms.remirepo.net/enterprise/7/remi/x86_64/ --install

次の起動設定を使用してcentos 7システムを正常にインストールできました。

install
url --url http://mirrors.seas.harvard.edu/centos/7/os/x86_64/

repo --name=epel --baseurl=http://ftp.cse.buffalo.edu/pub/epel/7/x86_64/ --install
repo --name=remi --baseurl=http://rpms.remirepo.net/enterprise/7/remi/x86_64/ --install

text
auth --enableshadow --passalgo=sha512
keyboard --vckeymap=us --xlayouts='us'
lang en-US.UTF-8
network --bootproto=dhcp --ipv6=auto --activate
firewall --enabled --service=ssh
timezone US/Eastern --isUtc
selinux --enforcing
bootloader --location=mbr
clearpart --all --initlabel
autopart
reboot --eject

rootpw --plaintext centos

%packages
@Core
chrony
git
iptables-services
man2html
php82
%end

%post
mkdir -m 700 /root/.ssh
curl -o /root/.ssh/authorized_keys https://github.com/YOURUSERNAME.keys
chmod 600 /root/.ssh/authorized_keys

yum -y upgrade
%end

--installインストールが完了したら、その行のパラメーターのおかげで、次のようにrepoなります。

# ls  -l /etc/yum.repos.d | grep -v CentOS
total 48
-rw-r--r--. 1 root root   81 Nov  6 14:50 epel.repo
-rw-r--r--. 1 root root   86 Nov  6 14:50 remi.repo

おすすめ記事