如何将Macports软件降级到旧版本? [英] How to downgrade macports software to old revision?
问题描述
我有一个使用通过Macports安装的软件包ffmpeg-devel
的应用程序.
I have an application that uses the software package ffmpeg-devel
which is installed via macports.
上个月,我通过运行port selfupdate
和port upgrade outdated
来更新macports,其中安装了新版本的ffmpeg-devel
.
Last month I updated macports by running port selfupdate
and port upgrade outdated
which installed a new version of ffmpeg-devel
.
然后,我的应用程序构建过程开始失败,并出现提及兼容性的错误.
我有99%的把握会因为新版本的ffmpeg-devel
而发生这种情况.
My Application building process then started to fail with errors mentioning compatibility.
I'm 99% sure that this happens because of the new version of ffmpeg-devel
.
我以前有ffmpeg-devel @20130205_0
,现在我有ffmpeg-devel @20130328_0
.
我不是专家",安装新版本后确实删除了旧版本,因此现在我需要安装旧的ffmpeg-devel
修订版(基于日期20130328).
I'm not a "guru" and after installing the new version I did remove the old version by mistake, so now I need to install the old ffmpeg-devel
revision (based on date 20130328).
我该怎么做?
谢谢
推荐答案
Macports不支持此功能,但是有一种解决方法.
Macports does not support this, but there is a workaround.
您可以将ffmpeg-devel
的旧端口文件放在本地端口文件存储库中,然后再次安装ffmpeg-devel.
You can put the old portfile of ffmpeg-devel
in a local portfile repository and then install ffmpeg-devel again.
- 创建本地端口文件存储库:方法
- 从 https://svn.macports.org/repository/macports/trunk/dports/multimedia/ffmpeg-devel?p=103000 并将其放在本地存储库的multimedia/ffmpeg-devel目录中.
- 在本地端口文件存储库中再次运行
portindex
- 使用
port install ffmpeg-devel
安装ffmpeg-devel
- Create a local portfile repository: howto
- Download the old portfile (and possibly other files) from https://svn.macports.org/repository/macports/trunk/dports/multimedia/ffmpeg-devel?p=103000 and put it in the multimedia/ffmpeg-devel directory of your local repository.
- Run
portindex
again in your local portfile repository - Install ffmpeg-devel with
port install ffmpeg-devel
这篇关于如何将Macports软件降级到旧版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!