如何将Macports软件降级到旧版本? [英] How to downgrade macports software to old revision?

查看:98
本文介绍了如何将Macports软件降级到旧版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用通过Macports安装的软件包ffmpeg-devel的应用程序.

I have an application that uses the software package ffmpeg-devel which is installed via macports.

上个月,我通过运行port selfupdateport 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.

  1. 创建本地端口文件存储库:方法
  2. https://svn.macports.org/repository/macports/trunk/dports/multimedia/ffmpeg-devel?p=103000 并将其放在本地存储库的multimedia/ffmpeg-devel目录中.
  3. 在本地端口文件存储库中再次运行portindex
  4. 使用port install ffmpeg-devel
  5. 安装ffmpeg-devel
  1. Create a local portfile repository: howto
  2. 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.
  3. Run portindex again in your local portfile repository
  4. Install ffmpeg-devel with port install ffmpeg-devel

这篇关于如何将Macports软件降级到旧版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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