如何为旧版 Fedora 安装软件包?

dob*_*611 2 yum fedora rpm rpmbuild

我使用的是 Fedora 13 VM,我需要安装一些旧的 rpm,但只有源 rpm 文件。我知道我可以用它rpmbuild --rebuild来构建二进制文件,但无论出于何种原因,rpm-build 没有与 yum 一起安装,而且我只能找到 fc13 的 rpm-build 的源 rpm 文件。所以这是一个递归问题。

我需要的特定 rpms 是 libvncserver,显然是 rpm-build,但最好知道如何从通用 SRPM 开始并让它在 Fedora 13 上工作,以满足未来出现的任何需求。

我该如何解决这个问题?我愿意接受任何建议,但我必须使用 Fedora 13。

Bra*_*ley 5

您可能只使用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
Run Code Online (Sandbox Code Playgroud)

然后给了我所有的 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...]
Run Code Online (Sandbox Code Playgroud)

你的包裹似乎在那里:

[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.
Run Code Online (Sandbox Code Playgroud)