如何使用yum安装同一软件包的两个不同版本 [英] How to install two different version of same package with yum

查看:350
本文介绍了如何使用yum安装同一软件包的两个不同版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

说我要安装同一软件包的两个不同版本.

Say I want to install two different versions of same package.

具体来说,我想为GNOME安装两个版本的Javascript绑定,即gjs包.我要有gjs-1.38.1-1.fc20.x86_64gjs-1.36.1-1.fc19.x86_64.

To be specific, I want to install two versions of Javascript binding for GNOME, gjs package. I want to have gjs-1.38.1-1.fc20.x86_64and gjs-1.36.1-1.fc19.x86_64.

Fedora 20中还有其他软件包,它们在很大程度上取决于gjs-1.38.1-1.fc20.x86_64,因此不可能用gjs-1.36.1-1.fc19.x86_64代替它.

There are other packages in Fedora 20 which greatly depends on gjs-1.38.1-1.fc20.x86_64 so it's impossible to replace it by gjs-1.36.1-1.fc19.x86_64.

我有一个与gjs-1.38.1-1.fc20.x86_64不兼容的特定程序,需要上一个.

I have one specific program that is not compatible with gjs-1.38.1-1.fc20.x86_64 and needs the previous one.

那么是否可以安装先前版本的gjs gjs-1.36.1-1.fc19.x86_64并通过/usr/bin/env gjs1(靠魔术!)访问它,以运行不兼容的程序而不会破坏任何内容?

So is it possible to install the previous version of gjs gjs-1.36.1-1.fc19.x86_64 and to access the it by /usr/bin/env gjs1 (by some magic!) to run the incompatible program without breaking anything?

推荐答案

在Fedora/RedHat世界中,通常的处理方式是创建一个辅助"compat"包,因此它类似于compat-gjs-136 spec文件所在的位置,将136后缀附加到所有可执行文件和库中.您可能会看到的一些例子是compat-gcc-34compat-expat1.

The way this is usually handled in the Fedora/RedHat world is to create a secondary "compat" package, so it would be something like compat-gjs-136 where you would have the spec file append the 136 suffix to all the executables and libraries. Some examples you could look at would be compat-gcc-34 and compat-expat1.

这篇关于如何使用yum安装同一软件包的两个不同版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆