如何忽略/取消标记某些端口? [英] How do i ignore/unmark certain ports?

查看:58
本文介绍了如何忽略/取消标记某些端口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何忽略升级某些端口或将其取消标记为过时".

I would like to know how to either ignore upgrading certain ports or unmark them as "outdated".

这是由于某些端口无法升级而导致的,而我希望升级其余所有端口.我知道sudo port install -n,它允许安装端口而不升级端口依赖项,例如mongodb需要较旧版本(不是当前版本)的boost库,但这在这里不适用.

This is motivated by certain ports failing to upgrade, while I wish to upgrade all the rest. I know about sudo port install -n, which allows one to install a port without upgrading port dependencies, as in the case of mongodb requiring an older (not the current) version of theboost libraries, but this is not applicable here.

例如:

$ sudo port list outdated
gdb                            @7.5            devel/gdb
py27-scikits-image             @0.7.1          python/py-scikits-image

由于gdb@7.5无法更新,我只想升级其他版本. py27-scikits-image,而无需遍历整个sudo port list outdated | awk '{print $1}' | grep -v gdb | xargs sudo port upgrade管道.

As gdb@7.5 fails to update, I would just like to upgrade the others, ie. py27-scikits-image, without going thru the whole sudo port list outdated | awk '{print $1}' | grep -v gdb | xargs sudo port upgrade pipeline.

非常感谢.

推荐答案

我建议为具有较低版本号的gdb创建一个本地端口文件.

I would advise to create a local portfile for gdb with a lower version number.

  1. 创建本地端口文件存储库:方法
  2. 将gdb端口文件目录(包含文件"Portfile"和目录"files"的名为"gdb"的目录)复制到本地端口文件存储库中
  3. 将端口文件中的版本号更改为例如0.0
  4. 在本地端口文件存储库中运行portindex
  1. Create a local portfile repository: howto
  2. Copy the gdb portfile directory (a directory called "gdb" containing the file "Portfile" and directory "files") into your local portfile repository
  3. Change the version number in the portfile to e.g. 0.0
  4. Run portindex in your local portfile repository

本地端口文件将覆盖从默认端口存储库下载的文件.低版本号使macports认为您的gdb版本是最新的.

The local portfile overrides the one downloaded from the default port repository. The low version number makes macports think your version of gdb is up to date.

我希望这会有所帮助.

顺便说一句:您可以执行sudo port upgrade outdated and not gdb

BTW: you can do sudo port upgrade outdated and not gdb

这篇关于如何忽略/取消标记某些端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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