我使用的是Fedora 13 VM,我需要安装一些旧的rpm,但只有源rpm文件。我知道我可以rpmbuild --rebuild
用来构建二进制文件,但是无论出于什么原因,yum都没有安装rpm-build,而且我只能找到fc13的rpm-build的源rpm文件。因此,这是一个递归问题。
我需要的特定rpm是libvncserver,显然是rpm-build,但理想的情况是知道如何从通用SRPM开始并使它在Fedora 13上运行,以应对将来出现的任何需求。
我该如何解决?我愿意接受任何建议,但必须使用Fedora 13。
您可能只需要使用yum
完整DVD ISO随附的存储库即可。我将ISO下载到RHEL6服务器,将其安装在环回中,并在中创建了以下内容/etc/yum.repos.d/fedora.repo
:
[root@vlp-xxx tmp]# cat /etc/yum.repos.d/fedora.repo
[fedora]
name='Fedora base sur DVD - monter le dvd dans /repo/dvd'
baseurl=file:///mnt/tmp
enabled=0
gpgcheck=0
然后,这给了我所有的Fedora 13 rpm:
[root@vlp-xxx tmp]# yum list available --disablerepo='*' --enablerepo=fedora | head
Loaded plugins: product-id, security, subscription-manager
Available Packages
BackupPC.noarch 3.1.0-13.fc13 fedora
ConsoleKit.i686 0.4.1-5.fc13 fedora
ConsoleKit-libs.i686 0.4.1-5.fc13 fedora
ConsoleKit-x11.i686 0.4.1-5.fc13 fedora
DeviceKit-power.i686 1:0.9.0-1.fc13 fedora
GConf2.i686 2.28.1-1.fc13 fedora
GConf2-devel.i686 2.28.1-1.fc13 fedora
GConf2-gtk.i686 2.28.1-1.fc13 fedora
[...snip...]
而且您的包裹似乎在里面:
[root@vlp-xxx tmp]# yum info rpm-build --disablerepo='*' --enablerepo=fedora
Loaded plugins: product-id, security, subscription-manager
Installed Packages
[...snip...]
Available Packages
Name : rpm-build
Arch : i686
Version : 4.8.0
Release : 14.fc13
Size : 125 k
Repo : fedora
Summary : Scripts and executable programs used to build packages
URL : http://www.rpm.org/
License : GPLv2+
Description : The rpm-build package contains the scripts and executable programs
: that are used to build packages using the RPM Package Manager.
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句