測試環境:CentOS 6.5 虛擬機apache
1. mkdir /repoide
2. 掛載DVD 1到 /media測試
cp -av /media/* /repo排序
3. 掛載DVD 2到 /media虛擬機
cp -av /media/Packages/*.rpm /repo/Packages/it
4. 把DVD 2的TRANS.TBL追加到DVD1中TRANS.TBL後面, 並排序保存class
cat /media/Packages/TRANS.TBL >> /repo/Packages/TRANS.TBL打包
mv /repo/Packages/TRANS.TBL /repo/Packages/TRANS.TBL.BAKyum
sort /repo/Packages/TRANS.TBL.BAK > /repo/Packages/TRANS.TBLsort
5. 打包爲ISO
yum -y install genisop_w_picpath
mkisofs -l -J -L -r -V "CentOS-6.5-x86_64" -o /root/CentOS-6.5-x86_64-DVD.iso /repo/
6. 安裝apache服務,把ISO文件拷出來