On Wed, Aug 20, 2025 at 10:37:19AM -0400, Bill Cole <[email protected]> wrote:
> On 2025-08-20 at 03:09:27 UTC-0400 (Wed, 20 Aug 2025 09:09:27 +0200) > Christoph Kukulies via macports-users <[email protected]> > is rumored to have said: > > > Nearly everytime when I'm using macports I'm asked to do a port > > selfupdate. To avoid this, I'd like to register a cron job that does the > > selfupdate - maybe once a week or > > if it doesn't cost much, every day?. > > Has anyone done so? It should run from root, shouldn't it? > > I do 'port sync ; port outdated' daily on my Macs in a root cron job *and > have assured that mail from cron get delivered to me* so that I see when I > have significant updates available. Doing 'port selfupdate' would be > minimally more load on the MacPorts infrastructure than a sync, and I would > think that a bigger concern would be load on your machine on the rare > occasions when MacPorts itself has been updated. > > -- > Bill Cole > [email protected] or [email protected] > (AKA @[email protected] and many *@billmail.scconsult.com addresses) > Not Currently Available For Hire I have a ~/bin/portup command on all of my macs that combines all of the things needed when I want to update all of my macports. So a cronjob isn't needed. It differs slightly on different laptops, but one example is: #!/bin/sh # portup - update macports sudo port reclaim && \ sudo port selfupdate && \ port installed outdated && \ sudo port upgrade outdated and not avidemux echo $? Other even older laptops include "and not MacVim". Strangely, it does keep trying to compile a new avidemux, even though I've asked it not to, but maybe one day it'll work again so that's fine. :-) cheers, raf
