From owner-freebsd-ports@freebsd.org Sat May 27 15:13:54 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 14BD0D853EB for ; Sat, 27 May 2017 15:13:54 +0000 (UTC) (envelope-from adamw@adamw.org) Received: from apnoea.adamw.org (apnoea.adamw.org [104.225.5.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "apnoea.adamw.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3173F130A for ; Sat, 27 May 2017 15:13:52 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by apnoea.adamw.org (OpenSMTPD) with ESMTPSA id cbb1bbb3 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Sat, 27 May 2017 09:13:50 -0600 (MDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: usage of "poudriere bulk -c ...." From: Adam Weinberger In-Reply-To: <20170527142801.GA3867@c720-r314251> Date: Sat, 27 May 2017 09:13:47 -0600 Cc: freebsd-ports@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <4F10DE6F-8338-452C-9591-C04D015CEA93@adamw.org> References: <20170527142801.GA3867@c720-r314251> To: Matthias Apitz X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 May 2017 15:13:54 -0000 > On 27 May, 2017, at 8:28, Matthias Apitz wrote: >=20 >=20 > Hello >=20 > I have built ports with: >=20 > # poudriere bulk -f poudriere-list -J 8 -j freebsd-r314251 -p = ports-20170519 >=20 > and I now want to remove the packages and logs of this jail+port, but = not of > other ports tree built with the same jail freebsd-r314251; >=20 > the man page of poudriere says about the flag -c that it will "Clean = _all_ > previously built packages and logs." which is perhaps not what I want = to > do, or is the man page not precise enough? What is the correct way to > remove freebsd-r314251-ports-20170519 pkg and logs? >=20 > Thanks >=20 > matthias -c won't do what you want because it just removes the packages prior to = rebuilding them again, though if you kill poudriere right after it = deletes the old packages you're okay. In that case, you can try using -C = instead, which removes just the packages specified. So "-C -f = poudriere-list" will remove all the packages in poudriere-list, but not = any of their dependencies. Just remember to CTRL-c it before it rebuilds = them! If you have the packages you want to keep in other lists, you can use = them with pkgclean: poudriere pkgclean -f list-of-ports-to-keep -f = other-list-of-ports-to-keep In the future, to minimize polluting your package space, consider doing = test builds within a new jail, or use sets (with -z) to keep them = separate. See poudriere(8) for some pointers on using sets. # Adam --=20 Adam Weinberger adamw@adamw.org https://www.adamw.org