From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dika Setya Prayogi Subject: Re: a bit curiousity Date: Wed, 23 Dec 2015 14:59:08 +0700 Message-ID: References: <87y4cm7bgy.fsf@elephly.net> <87mvt2bf0b.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBeKE-0006d4-Bu for guix-devel@gnu.org; Wed, 23 Dec 2015 02:59:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBeKD-0001Xk-91 for guix-devel@gnu.org; Wed, 23 Dec 2015 02:59:10 -0500 In-Reply-To: <87mvt2bf0b.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: guix-devel@gnu.org many thanks for the info :-) 2015-12-22 23:54 GMT+07.00, Ludovic Court=C3=A8s : > Ricardo Wurmus skribis: > >> Dika Setya Prayogi writes: > > [...] > >>> 2.set auto garbage collect for package old than one month >> >> Garbage collection is not about age but about references. If a package >> is referenced in a profile (even if it=E2=80=99s not the latest generati= on of >> the profile) it won=E2=80=99t be collected. This is a feature. >> >> To achieve garbage collection of old packages you would have to remove >> all old profile generations (so that older packages are no longer >> referenced), and also make sure that no =E2=80=9Cold=E2=80=9D packages a= re referenced in >> the current profile generation. This essentially requires a forced >> upgrade with deletion of older profile generations, which seems quite >> unwise. You=E2=80=99d throw away some of the best features of Guix, in = my >> opinion. > > One could have a periodic job that runs: > > guix package --delete-generations=3D1m && guix gc > > This removes generations older than 1 month and then runs the GC. > > Depending on your use case, this may or may not be a good idea. I > personally prefer to remove generations once I know I=E2=80=99m very unli= kely to > ever need to roll back to them. > > Ludo=E2=80=99. >