<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><pre><blockquote type="cite"><font face="UICTFontTextStyleTallBody"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);">And if I do _not_ change the name, then how will command “sudo port install okular” know to use the modified port, inside my home tree, instead of the distributed one?</span></font></blockquote><br></pre><pre>for a one-off like that, you can use a MacPorts feature.</pre><pre>If you type "sudo port install" without a name, in a port directory, it will always build and install the port with the default name from the portfile in the directory you are in.</pre><pre>Gets trickier when using variants, though. To do that, you need to use a subport syntax, like this:</pre><pre><br></pre><pre>sudo port -v install subport=name +myvariant -myunwantedvariant</pre><pre><br></pre><pre>and then it will build and install the named subport in your local folder, which can be the main port name, or some subport of it, with your variants.</pre><pre><br></pre><pre>For permanently setting your port as the replacement of the named port I cannot tell you, but look in recent prior messages and you will see it mentioned.</pre><pre><br></pre><pre>K</pre><div></div></body></html>