大家好,我是一个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
,
请帮忙看下 谢谢阿


dsioa 于 2013-07-17 15:36:01发表:
hello
Griffins 于 2013-07-16 10:05:17发表:
我也有同样的疑问
zjb 于 2013-07-10 09:20:30发表:
额
于 2013-07-09 15:15:27发表:
我也有这个问题啊,
Repository 'localServer' is missing name in configuration, using id
luoning504 于 2011-06-15 21:55:53发表:
谢谢哦
age 于 2011-06-15 21:37:25发表:
[i=s] 本帖最后由 age 于 2011-6-15 21:39 编辑 [/i]
不懂你为什么要自己建repo
从网上同步一个不就行了
自己建的话需要解决依赖关系什么的, 并不方便吧
要装本地rpm包的话, 直接 yum install vnc.rpm --nogpgcheck就行了