<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 11 May 2021, at 01:11, Ryan Schmidt <<a href="mailto:ryandesign@macports.org" class="">ryandesign@macports.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class=""><br class="">On May 9, 2021, at 17:07, Gerben Wierda wrote:<br class=""><br class=""><blockquote type="cite" class="">I relied on the fact that man page/help of reclaim said it would not remove active installs. So, having read that, I assumed it was unable to damage the running setup and I assumed it would only remove everything inactive, compile stuff, etc.<br class=""><br class="">That was a mistake I now know. Reclaim will remove active unrequested installs. But the help/man does not say so.<br class=""></blockquote><br class="">I'm really sorry that it uninstalled ports that you needed; that's really not helpful.<br class=""><br class="">The port-reclaim(1) manpage and `port help reclaim` say:<br class=""><br class="">"port reclaim will find files that can be removed to reclaim disk space by uninstalling inactive ports on your system as well as unnecessary unrequested ports, and removing unneeded or unused installation files. The user is then provided interactive options for files to remove. No files are removed initially, until the user selects them from the provided list."<br class=""></div></div></blockquote><div><br class=""></div><div>When I wrote “man page/help of reclaim said it would not remove active installs” I should have written “man page/help said of/about reclaim it would not remove active installs”. I did not say ‘port help reclaim’ or man port-reclaim’. I used the main ‘man port’. </div><div><br class=""></div><div>Where the flag is described ‘port help’ or 'man port' only says:</div><div><br class=""></div><div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> reclaim</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> Reclaims disk space by uninstalling inactive ports and removing unneeded installation files.</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div></div>It doesn’t mention that it removes anything but inactive ports. This is what made me not care about lists being presented. Beside, tThe list was huge, most of it py38 or p5 somethings. So, I trusted that statement (which turned out to be not completely true)</div><div><br class=""></div><div>My suggestion would be to adapt the main port help.</div><div><br class=""></div><div><br class=""></div><div><div class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div><div class="">Gerben Wierda (<a href="https://www.linkedin.com/in/gerbenwierda" class="">LinkedIn</a>)</div><div class=""><a href="https://ea.rna.nl/" class="">R&A Enterprise Architecture</a> (main site)<br class="">Book: <a href="https://ea.rna.nl/the-book/" class="">Chess and the Art of Enterprise Architecture</a><br class="">Book: <a href="https://ea.rna.nl/the-book-edition-iii/" class="">Mastering ArchiMate</a><br class=""></div><div class=""><br class=""></div></div></div></div></div></div></div></div></div><blockquote type="cite" class=""><div class=""><div class=""><br class="">So it clearly says it will uninstall unrequested ports that are no longer needed, which users are expected to have no problem with; in fact, this functionality is one of the reasons why users are expected to want to run reclaim: to reclaim disk space for things that are no longer needed. And it says it will show you the list of everything it will uninstall before it does it. So you have an opportunity to cancel before it does that. I'm not sure how much more we can do to save the user from uninstalling things they didn't mean to uninstall. Do you have a suggestion?<br class=""><br class="">Users should definitely look through the output of `port installed unrequested` and make sure that it does not contain anything you actually want. If it does, use `sudo port setrequested` to tell MacPorts which ones you actually do want, as Daniel said. Conversely, look through the output of `port installed requested` and if anything is listed that you don't actually want, use `sudo port unsetrequested` to mark it as not needed.</div></div></blockquote></div><br class=""></body></html>