亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区
Chinaunix
標(biāo)題:
虛擬機架設(shè)本地源需要用到createrepo嗎?
[打印本頁]
作者:
qiuzugen
時間:
2011-10-14 01:16
標(biāo)題:
虛擬機架設(shè)本地源需要用到createrepo嗎?
本帖最后由 qiuzugen 于 2011-10-14 01:22 編輯
我自己實踐了一把:
在虛擬機里掛載了Linux.5.5.for.x86.rhel-server-5.5-i386-dvd.iso,
配置了/etc/yum.repo.d/local.repo如下:
[base]
name=Server
baseurl=file:///iso/Server
enabled=1
gpgcheck=0
[VT]
name=VT
baseurl=file:///iso/VT
enabled=1
gpgcheck=0
[Cluster]
name=Cluster
baseurl=file:///iso/Cluster
enabled=1
gpgcheck=0
[ClusterStorage]
name=ClusterStorage
baseurl=file:///iso/ClusterStorage
enabled=1
gpgcheck=0
然后yum install xxx就好使了。但網(wǎng)上好多人說還要如下設(shè)置:
cd ../Server/
createrepo -g repodata/comps-rhel5-server-core.xml ./
我的系統(tǒng)里根本就沒有安裝createrepo這個包,連這個命令都沒有,
而且我發(fā)現(xiàn)/iso/ClusterStorage/repodata下面已經(jīng)有了comps-rhel5-cluster-st.xm之類的文件,請問這到底是怎么回事呢?
還有個問題:local.repo里的[]里的名字到底和哪里對應(yīng)。课疫@里的一個[base]是自己隨便寫的一個,也好使啊。那個name=xxx應(yīng)該也是隨便吧,不用和哪里對應(yīng)吧。
作者:
chenyx
時間:
2011-10-14 08:29
不用那步就可以用了.那個[]和name內(nèi)容也可以直接寫,不過我一般用系統(tǒng)的命名,好記
作者:
bikong0411
時間:
2011-10-14 09:02
學(xué)習(xí)了
作者:
milujite
時間:
2011-10-14 09:07
不用,平時自己弄幾個包當(dāng)源才需要這個。光盤本身就是已經(jīng)是一個repo了
作者:
qiuzugen
時間:
2011-10-14 18:56
回復(fù)
4#
milujite
非常感謝
歡迎光臨 Chinaunix (http://72891.cn/)
Powered by Discuz! X3.2