Opened 7 months ago

Closed 7 months ago

Last modified 3 months ago

#68680 closed defect (invalid)

port contents command doesn't work

Reported by: COOLak Owned by:
Priority: Normal Milestone:
Component: base Version:
Keywords: Cc:
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

erik@MacBook-Pro-Erik Downloads % sudo port contents
Password:
Can't map the URL 'file://.' to a port description file ("Could not find Portfile in /Users/erik/Downloads").
Please verify that the directory and portfile syntax are correct.
To use the current port, you must be in a port's directory.

I have no idea what it all means, please help?

Change History (5)

comment:1 Changed 7 months ago by COOLak

Description: modified (diff)

comment:2 Changed 7 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

You haven't told MacPorts which port you want to see the contents of. For example, if you want to see the contents of zlib, type port contents zlib. No need to use sudo since you're not changing anything, just getting information.

comment:3 Changed 7 months ago by ryandesign (Ryan Carsten Schmidt)

Component: portsbase
Resolution: invalid
Status: newclosed

Read the MacPorts Guide for more information on how to use MacPorts, and if you have more questions, the macports-users mailing list is a better place to ask than the issue tracker.

comment:4 Changed 3 months ago by davidfavor (David Favor)

Question likely is how to suppress the 'file://.' to a port description file ("Could not find Portfile in /Users/erik/Downloads") nag.

I have the same problem, which started occurring around a year ago.

Disk Wipe -> Reinstall OSX -> problem remains.

Someone mention how to suppress this nag.

Thanks.

comment:5 in reply to:  4 Changed 3 months ago by kencu (Ken)

Replying to davidfavor:

Someone mention how to suppress this nag.

If you don't type:

sudo port contents

in some random folder, you won't see this nag.

Note: See TracTickets for help on using tickets.