Using MacPorts "Offline"

Jepeway, Chris Chris.Jepeway at JTV.com
Tue Jan 30 20:28:11 UTC 2018


Ah, perfect, thanks (& to Ryan).

This now works:

nickel% sudo port version
[long delay while bsdtar runs]
Version: 2.4.2

This, however, is a bust:

nickel% sudo port echo gawk\*
Warning: Can't open index file for source: file:///Users/chrjep2/share/macports/ports.tar
Error: /opt/local/bin/port: search for portname gawk* failed: No index(es) found! Have you synced your port definitions? Try running 'port selfupdate'.

And, of course, "port selfupdate" wants to phone home to rsync.macports.org<http://rsync.macports.org>, which my "banned from the internet" MacBook can't do.

Is there something I can do with "port index" that'll clear this up?  There seem to be indexes in the extracted ports dir:

nickel% ls -ltrd /opt/local/var/macports/portdirs/ports/*dex*17*
drwxr-xr-x  4 500  505  128 Jan 30 15:17 /opt/local/var/macports/portdirs/ports/PortIndex_darwin_17_i386/

Chris.

On Jan 30, 2018, at 11:23 AM, Rainer Müller <raimue at macports.org<mailto:raimue at macports.org>> wrote:

On 2018-01-30 01:15, Jepeway, Chris wrote:
This is the last line of sources.conf:

file:///Users/chrjep2/share/macports/ports.tar [default] [nosync]

The correct syntax would be to put the flags into the same brackets:

   file:///Users/chrjep2/share/macports/ports.tar [default,nosync]

Rainer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20180130/6d92439c/attachment.html>


More information about the macports-users mailing list