From nobody Wed Oct 6 23:37:25 2021 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7AB8717EBAB3 for ; Wed, 6 Oct 2021 23:37:36 +0000 (UTC) (envelope-from freebsd@raf.org) Received: from ook.raf.org (ook.raf.org [139.99.156.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HPrTq42jHz4RFW for ; Wed, 6 Oct 2021 23:37:35 +0000 (UTC) (envelope-from freebsd@raf.org) Received: from localhost (localhost [127.0.0.1]) by ook.raf.org (Postfix) with ESMTP id 389A35DED0 for ; Thu, 7 Oct 2021 10:37:26 +1100 (AEDT) X-Virus-Scanned: Debian amavisd-new at ook.raf.org Received: from ook.raf.org ([127.0.0.1]) by localhost (ook.raf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jNECcC_0ifTQ for ; Thu, 7 Oct 2021 10:37:25 +1100 (AEDT) Received: by ook.raf.org (Postfix, from userid 1001) id 2BB165E340; Thu, 7 Oct 2021 10:37:25 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raf.org; s=001; t=1633563445; bh=kSzotqoWFh/banaCP3s6ZQw/2PYIKb7PvwWMUCSwhOY=; h=Date:From:To:Subject:References:In-Reply-To:From; b=C/SvnJHLt1qfMisWv4bhUqHMRxZfoBAX55NWsVE/Te/tPNC9uz9jaCMYRcN87Izmh srNZeucAbKiXHbYOmAlmq0vSinzvv/d8vXLMTPOEWY5p0hmtcC3Upw50u4qbHSOamf wGMTjCHdQVkNmtLKjQ3XojgovO2gHKg/b9K85DuUzfGfzkVTQ4lFbu7OpxqYRFRKjF /wFC6vFF4ohqYxGqOLqvWaxKuMOOeRstxqipbpghs5hrlEadu4vbUIIA/8DtqxgRmn b8o2ZC0Z15htrzyj5qA916QZ1Uc4E9w/RxmFwIpxQYjZvgkHHIYXuLUEiDiXD2k6yS ub8WC25y4pCaA== Date: Thu, 7 Oct 2021 10:37:25 +1100 From: raf To: ports@freebsd.org Subject: Re: Remove a port without removing files Message-ID: References: <199845d7-2be0-f572-b6f5-78a2d51562bb@nethead.se> List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4HPrTq42jHz4RFW X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=raf.org header.s=001 header.b="C/SvnJHL"; dmarc=pass (policy=none) header.from=raf.org; spf=pass (mx1.freebsd.org: domain of freebsd@raf.org designates 139.99.156.21 as permitted sender) smtp.mailfrom=freebsd@raf.org X-Spamd-Result: default: False [-4.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[raf.org:s=001]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:139.99.156.21:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[ports@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[raf.org:+]; DMARC_POLICY_ALLOW(-0.50)[raf.org,none]; RCVD_IN_DNSWL_NONE(0.00)[139.99.156.21:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:16276, ipnet:139.99.128.0/17, country:FR]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Wed, Oct 06, 2021 at 11:53:05AM +1100, raf wrote: > On Tue, Oct 05, 2021 at 07:03:30PM +0200, Per olof Ljungmark 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