centos:kickstart:rebuild
                差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| centos:kickstart:rebuild [2013/03/10 06:14] – [依存性のチェック] 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 / | 
| </ | </ | ||
| + | |||
| + | <note important> | ||
| + | 消すものが多いので必要なものだけバックアップ取って | ||
| + | いちから作りなおしたほうが転送速度の分だけ早いかもしれない。 | ||
| + | < | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | </ | ||
| + | </ | ||
| ===== DVDから必要なファイルをコピー ===== | ===== DVDから必要なファイルをコピー ===== | ||
| 行 46: | 行 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からインストールに使うパッケージのみコピーする ===== | ||
| 行 63: | 行 81: | ||
| 上記のようなコードを書いて/ | 上記のようなコードを書いて/ | ||
| - | ===== 依存関係のチェック | + | ===== 依存関係の解決 | 
| <code bash> | <code bash> | ||
| 行 69: | 行 87: | ||
| ~/ | ~/ | ||
| </ | </ | ||
| + | |||
| + | ===== 依存関係のテスト ===== | ||
| + | |||
| + | <code bash> | ||
| + | mkdir /tmp/testdb | ||
| + | rpm --initdb --dbpath /tmp/testdb | ||
| + | rpm --test --dbpath /tmp/testdb -Uvh *.rpm | ||
| + | </ | ||
| + | |||
| + | ===== repodata作成 ===== | ||
| + | |||
| + | <code bash> | ||
| + | cd ~/ | ||
| + | rpm -Uvh createrepo*rpm deltarpm*rpm python-deltarpm*rpm | ||
| + | cd ~/ | ||
| + | declare -x discinfo=`head -1 .discinfo` | ||
| + | createrepo -u " | ||
| + | </ | ||
| + | |||
| + | ===== 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.1362896066.txt.gz · 最終更新: 2023/06/10 09:13 (外部編集)
                
                