如何更改Macports的镜像 [英] How to change the mirror of macports

查看:397
本文介绍了如何更改Macports的镜像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是OS X的新手,对Macports的工作方式完全感到困惑.

I'm a newbie to OS X, and totally confused about the way macports works.

我的问题是,如何更改镜像或macports下载端口文件和distfiles的站点.

My question is, how to change the mirror or the sites where macports download the portfiles and distfiles.

我要使用的镜像: http://mirrors.ustc.edu.cn/macports/

我应该更改sources.conf吗?但是此镜像没有rsync协议(我不太清楚什么是rsync协议> _<).

Should I change the sources.conf? But this mirror has no rsync protocol(I'm not really clear about what rsync protocol is >_<).

还是应该配置macports.conf?

Or should I configure the macports.conf?

我了解Macports官方指南,但我不够聪明,无法弄清楚这一点.

I know about the macports offical guide, but I'm not smart enough to figure this out.

有人可以帮助我吗?

谢谢.

推荐答案

根据文档: https://trac.macports.org/wiki/Mirrors

用于获取Portfiles的URL在$ {prefix}/etc/macports/sources.conf中设置

The URL used to get Portfiles is set in ${prefix}/etc/macports/sources.conf

如果您不熟悉OS X和/或MacPorts,请考虑阅读入门指南: http://guide. macports.org/

If you are new to OS X and/or MacPorts, please consider reading the introductory guide: http://guide.macports.org/

这篇关于如何更改Macports的镜像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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