Answers:
出于测试目的,我将使用octave
端口。通过运行列出端口所需的distfiles port distfiles octave
。您将获得以下输出:
---> Distfiles for octave
[octave-3.2.4.tar.gz] /opt/local/var/macports/distfiles/octave/octave-3.2.4.tar.gz
md5: 90c39fa9e241ad2e978bcee4682a2ba9
sha1: 93b81fc300bc5e27e88b6668ef0622f29898dfd2
rmd160: 13b2198db1b8684229d2ba787ebbedd8e50a518c
http://mirrors.ibiblio.org/pub/mirrors/gnu/ftp/gnu/octave/octave-3.2.4.tar.gz
http://mirrors.kernel.org/gnu/octave/octave-3.2.4.tar.gz
http://www.mirrorservice.org/sites/ftp.gnu.org/gnu/octave/octave-3.2.4.tar.gz
…
http://lil.fr.distfiles.macports.org/octave/octave-3.2.4.tar.gz
http://sea.us.distfiles.macports.org/macports/mpdistfiles/octave/octave-3.2.4.tar.gz
http://svn.macports.org/repository/macports/distfiles/octave/octave-3.2.4.tar.gz
方括号内是要下载的文件的名称,其后是MacPorts搜索文件的路径。您可以使用下载管理器从下面的链接下载许多镜像。转到/opt/local/var/macports/distfiles
并创建一个目录(octave
如果不存在)。将下载的源程序包放在该文件夹中。继续使用安装sudo port install octave
。
确保您拥有属于给定端口的所有distfile,因为许多端口有多个。
这对我来说不是很有效。该port distfiles ntfs-3g
给我
---> Distfiles for ntfs-3g
[ntfs-3g_ntfsprogs-2012.1.15.tgz] /opt/local/var/macports/distfiles/ntfs-3g/ntfs-3g_ntfsprogs-2012.1.15.tgz
md5: 341acae00a290cab9b00464db65015cc
sha1: 8d55cf49afde172fefa369a0a85289e09c4d7bbb
rmd160: 4db6ea1025eedeee160a1cd4238d069a307b9b35
http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2012.1.15.tgz
http://distfiles.macports.org/ntfs-3g/ntfs-3g_ntfsprogs-2012.1.15.tgz
http://aarnet.au.distfiles.macports.org/pub/macports/mpdistfiles/ntfs-3g/ntfs-3g_ntfsprogs-2012.1.15.tgz
http://cjj.kr.distfiles.macports.org/ntfs-3g/ntfs-3g_ntfsprogs-2012.1.15.tgz
http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/ntfs-3g/ntfs-3g_ntfsprogs-2012.1.15.tgz
http://her.gr.distfiles.macports.org/mirrors/macports/mpdistfiles/ntfs-3g/ntfs-3g_ntfsprogs-2012.1.15.tgz
http://jog.id.distfiles.macports.org/macports/mpdistfiles/ntfs-3g/ntfs-3g_ntfsprogs-2012.1.15.tgz
http://lil.fr.distfiles.macports.org/ntfs-3g/ntfs-3g_ntfsprogs-2012.1.15.tgz
http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/ntfs-3g/ntfs-3g_ntfsprogs-2012.1.15.tgz
http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/ntfs-3g/ntfs-3g_ntfsprogs-2012.1.15.tgz
http://svn.macports.org/repository/macports/distfiles/ntfs-3g/ntfs-3g_ntfsprogs-2012.1.15.tgz
但是当我执行sudo port install ntfs-3g
它时说
---> Attempting to fetch ntfs-3g-2012.1.15_3.darwin_11.x86_64.tbz2 from http://packages.macports.org/ntfs-3g
为了获得相同的结果,我下载http://packages.macports.org/ntfs-3g/ntfs-3g-2012.1.15_3.darwin_11.x86_64.tbz2
并放入/opt/local/var/macports/incoming/verified
。sudo port install ntfs-3g
然后找到我已下载的文件,不再尝试再次下载。我发现llvm-3.1
包裹也一样。
rdep
列出了软件包的依赖关系,而不是要下载的文件。