The default MacPorts installation downloads each dependency, builds and installs it, then downloads, builds and installs the next dependency, and so on. This means that a constant network connection is required throughout the installation. In my configuration, a constant network connection is not feasible. This means that installation of a large-dependency package can take a very long time.
How do I download all dependencies for a specified MacPorts package at the beginning (while connected to the network) and then build and install each dependency (开发者_Python百科no network connection required)?
While connected to the network, use:
port fetch rdepof:<packagename> <packagename>
Then, with no network connection required, use:
port clean rdepof:<packagename> <packagename>
port install <packagename>
rdepof: is a recursive list of all of the package's dependencies. The clean command removes any previous builds of the package or its dependencies.
Use port fetch <packagename>.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论