From owner-freebsd-questions@freebsd.org Mon Jun 6 08:33:11 2016 Return-Path: Delivered-To: freebsd-questions@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 BF66EB6D429 for ; Mon, 6 Jun 2016 08:33:11 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 845E71C8C for ; Mon, 6 Jun 2016 08:33:11 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [89.204.138.192] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1b9py4-0005MN-Sx; Mon, 06 Jun 2016 10:33:05 +0200 Received: from localhost.my.domain (c720-r292778-amd64 [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id u568X0L5003794 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 6 Jun 2016 10:33:01 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id u568Wwju003781; Mon, 6 Jun 2016 10:32:58 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Mon, 6 Jun 2016 10:32:58 +0200 From: Matthias Apitz To: Mario Lobo Cc: freebsd-questions@freebsd.org Subject: Re: pkg delete dilema Message-ID: <20160606083258.GA3697@c720-r292778-amd64> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , Mario Lobo , freebsd-questions@freebsd.org References: <86inylhd5s.fsf@WorkBox.Home> <20160511084754.5b2e9d05@Papi> <20160511115637.GA4375@c720-r292778-amd64> <20160511092601.6032ef9f@Papi> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160511092601.6032ef9f@Papi> X-Operating-System: FreeBSD 11.0-CURRENT r292778 (amd64) User-Agent: Mutt/1.5.24 (2015-08-30) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.138.192 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jun 2016 08:33:11 -0000 El día Wednesday, May 11, 2016 a las 09:26:01AM -0300, Mario Lobo escribió: > > I compile all my ~1800 packages on some other host with poudriere and > > install them from time to time from my own repository with: > > > > # pkg delete -a > > # pkg delete -f pkg > > # pkg-static install ... > > > > This works nice, fast and clean. > > > > matthias > > In addition to the procedure above, I did this time before the deletion of all packages: # pkg query '%a %n' | fgrep '0 ' | sed 's/0 //' > what-I-have-installed.txt this gives you in the file what-I-have-installed.txt a list of what you have installed, i.e. without dependency packages; later you just run this list from a script # sh # while read name; do pkg install -y $name done < what-I-have-installed.txt and you have all back again as before; matthias -- Matthias Apitz, ✉ guru@unixarea.de, ⌂ http://www.unixarea.de/ ☎ +49-176-38902045 "Die Verkaufsschlager des Buchmarkts geben Auskunft über den Zustand einer Gesellschaft bzw. sind, was diese Zeiten angeht, Gradmesser fortschreitenden Schwachsinns. ..." (jW 19.05.2016)