centos:kickstart:rebuild
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| centos:kickstart:rebuild [2013/03/10 06:25] – [依存関係のテスト] washi | centos:kickstart:rebuild [2023/06/10 09:13] (現在) – 外部編集 127.0.0.1 | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| ====== OSのバージョンが上がった時のビルド環境更新手順 ====== | ====== OSのバージョンが上がった時のビルド環境更新手順 ====== | ||
| - | CentOS6.3-> | + | CentOS6.3-> |
| 当然パッケージのバージョンが上がってるのでかなり大変。 | 当然パッケージのバージョンが上がってるのでかなり大変。 | ||
| + | |||
| ===== 6.3のkickstart環境をtar ball化しておく ===== | ===== 6.3のkickstart環境をtar ball化しておく ===== | ||
| 行 34: | 行 35: | ||
| rm -f / | rm -f / | ||
| rm -f / | rm -f / | ||
| - | rm -rf / | + | rm -Rf / |
| </ | </ | ||
| 行 57: | 行 58: | ||
| </ | </ | ||
| + | ===== repodataからcomps.xmlファイルを取得 ===== | ||
| + | <code bash> | ||
| + | cp / | ||
| + | gunzip cb96727ddc89e5e1786456c6f2c08a81418296f949470311ee9c2ebb1a6ccc7d-c6-x86_64-comps.xml.gz | ||
| + | mv -f cb96727ddc89e5e1786456c6f2c08a81418296f949470311ee9c2ebb1a6ccc7d-c6-x86_64-comps.xml comps.xml | ||
| + | </ | ||
| ===== all_rpmsからインストールに使うパッケージのみコピーする ===== | ===== all_rpmsからインストールに使うパッケージのみコピーする ===== | ||
| 行 89: | 行 96: | ||
| </ | </ | ||
| - | ===== repodataからcomps.xmlファイルを取得 | + | ===== repodata作成 |
| <code bash> | <code bash> | ||
| - | cp /media/CentOS_6.4_Final/ | + | cd ~/kickstart_build/all_rpms |
| - | gunzip cb96727ddc89e5e1786456c6f2c08a81418296f949470311ee9c2ebb1a6ccc7d-c6-x86_64-comps.xml.gz | + | rpm -Uvh createrepo*rpm deltarpm*rpm python-deltarpm*rpm |
| - | mv -f cb96727ddc89e5e1786456c6f2c08a81418296f949470311ee9c2ebb1a6ccc7d-c6-x86_64-comps.xml | + | cd ~/ |
| + | declare | ||
| + | createrepo | ||
| </ | </ | ||
| + | |||
| + | ===== muninに必要なパッケージをダウンロード ===== | ||
| + | |||
| + | <code bash> | ||
| + | wget http:// | ||
| + | rpm -ivh epel-release-6-8.noarch.rpm | ||
| + | vi / | ||
| + | </ | ||
| + | |||
| + | 以下のenabled=0をenabled=1に編集 | ||
| + | |||
| + | < | ||
| + | [epel-testing] | ||
| + | name=Extra Packages for Enterprise Linux 6 - Testing - $basearch | ||
| + | # | ||
| + | mirrorlist=https:// | ||
| + | failovermethod=priority | ||
| + | enabled=0 | ||
| + | gpgcheck=1 | ||
| + | gpgkey=file:/// | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | cd / | ||
| + | rm -f / | ||
| + | yumdownloader --resolve munin | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== webminに必要なパッケージをダウンロード ===== | ||
| + | |||
| + | <code bash> | ||
| + | vi / | ||
| + | </ | ||
| + | |||
| + | リポジトリ(/ | ||
| + | < | ||
| + | [Webmin] | ||
| + | name=Webmin Distribution Neutral | ||
| + | # | ||
| + | mirrorlist=http:// | ||
| + | enabled=1 | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | rpm --import http:// | ||
| + | yumdownloader --resolve webmin | ||
| + | </ | ||
| + | |||
| + | ===== isoファイルの作成 ===== | ||
| + | |||
| + | <code bash> | ||
| + | yum -y install anaconda-runtime | ||
| + | cd ~/ | ||
| + | mkisofs -o custom.iso -b isolinux.bin -c boot.cat -no-emul-boot \ | ||
| + | | ||
| + | implantisomd5 custom.iso | ||
| + | </ | ||
| + | |||
| + | / | ||
centos/kickstart/rebuild.1362896730.txt.gz · 最終更新: 2023/06/10 09:13 (外部編集)
