歡迎您光臨本站 註冊首頁

yum 倉庫的建立

←手機掃碼閱讀     火星人 @ 2014-03-22 , reply:0

大家好,我是一個Linux的初學者,最近在研究Yum倉庫的建立
我已經把我的系統鏡像發布到了http里,並且成功建立了yum倉庫,yum倉庫的使用一切正常
今天在裝一個rpm包的時候,說許要解決一下rpm包的兼容性,我就自己在建立了一個yum倉庫,具體步驟如下
1.yum install createrepo.noarch 安裝creatrepo .

2mv /root/Desktop/vnc-4_1_3-x86_linux.rpm /mnt/test 將下載的軟體包移動到自己的文件里

3 cd /mnt/test

4. createrepo .
1/1 - vnc-4_1_3-x86_linux.rpm
Saving Primary metadata
Saving file lists metadata 顯示的是
Saving other metadata


5.ls /mnt/test/repodate
filelists.xml.gz other.xml.gz primary.xml.gz repomd.xml 顯示的是

6.vim /etc/yum.repos.d/yum.repo
[Server]
name=local Server
baseurl=http://192.168.1.119/5.4/Server
gpgcheck=0

[Cluster]
name=local Cluster
baseurl=http://192.168.1.119/5.4/Cluster
gpgcheck=0

[ClusterStorage]
name=local ClusterStorage
baseurl=http://192.168.1.119/5.4/ClusterStorage
gpgcheck=0

[VT]
name=local VT
baseurl=http://192.168.1.119/5.4/VT
gpgcheck=0

添加
[test]
baseurl=file:///mnt/test
gpgcheck=0


在使用yum clean all 的時候
Loaded plugins: aliases, changelog, downloadonly, fastestmirror, filter-data,
: keys, kmod, list-data, protect-packages, protectbase, rhnplugin,
: security, tmprepo, verify, versionlock
Repository 'test' is missing name in configuration, using id
Repository 'test' is missing name in configuration, using id
Repository test is listed more than once in the configuration
Cleaning up Everything
Cleaning up list of fastest mirrors


在使用yum install vnc-4_1_3-x86_linux
最後顯示的是Package vnc-4_1_3-x86_linux.rpm is not signed




請幫忙看下 謝謝阿

[火星人 ] yum 倉庫的建立已經有505次圍觀

http://coctec.com/docs/linux/show-post-101507.html