Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Oct 2021 10:37:25 +1100
From:      raf <freebsd@raf.org>
To:        ports@freebsd.org
Subject:   Re: Remove a port without removing files
Message-ID:  <YV4zNZorPVHVtFw4@raf.org>
In-Reply-To: <YVzzcfG20x7gVGvu@raf.org>
References:  <199845d7-2be0-f572-b6f5-78a2d51562bb@nethead.se> <YVzzcfG20x7gVGvu@raf.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 06, 2021 at 11:53:05AM +1100, raf <freebsd@raf.org> wrote:

> On Tue, Oct 05, 2021 at 07:03:30PM +0200, Per olof Ljungmark <peo@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YV4zNZorPVHVtFw4>