On Wed, Oct 06, 2021 at 11:53:05AM +1100, raf <free...@raf.org> wrote:
> On Tue, Oct 05, 2021 at 07:03:30PM +0200, Per olof Ljungmark > <p...@nethead.se> wrote: > > > As the subject says, I need to remove a port so pkg etc does not care about > > it, but keeping all the ports files intact. > > > > Thanks, > > Per > > Something like this might do what you want: > > cd / > sudo tar czf /tmp/PORTNAME.tar.gz `port contents PORTNAME | grep -v > 'Port.*contains:'` > port uninstall PORTNAME > sudo tar xzf /tmp/PORTNAME.tar.gz > rm /tmp/PORTNAME.tar.gz Apologies. I thought this was for the macports list. cheers, raf