From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: How to delete system generations? Date: Sun, 08 Jan 2017 21:50:22 +0100 Message-ID: <87lgultgxd.fsf@gnu.org> References: 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]:37873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQKQB-00011E-BU for help-guix@gnu.org; Sun, 08 Jan 2017 15:50:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQKQ6-000341-Ez for help-guix@gnu.org; Sun, 08 Jan 2017 15:50:31 -0500 In-Reply-To: (huang ying's message of "Sun, 8 Jan 2017 22:01:12 +0800") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: huang ying Cc: help-guix@gnu.org Hello, huang ying skribis: > For package, there is > > $ guix package --delete-generations > > But, for system, I don't find similar stuff? Is there something for that? Not yet! But you can run: sudo rm /var/guix/profiles/system-123-link to delete generation 123. Be careful to choose the right number! > I need that because I found the contents of the following store item is i= nvalid, > > /gnu/store/s9mrff47jfp9b3bhgv59q2kzwbmi6rl8-fatfsck-static-4.0 > > $ ls -l /gnu/store/s9mrff47jfp9b3bhgv59q2kzwbmi6rl8-fatfsck-static-4.0/sb= in > total 0 > -r-xr-xr-x 1 root root 0 Jan 1 1970 fsck.fat > lrwxrwxrwx 4 root root 8 Jan 1 1970 fsck.vfat -> fsck.fat How do you know it=E2=80=99s invalid? > I want to regenerate it and the initrd. But I don't know how. One > way is to delete all generations depends on it, gc it, then regenerate > it. But I don't know how to delete system generations. > > Or is there some other way to work around this? When the store is corrupt, you can run =E2=80=98guix gc --verify=3Dcontents= ,repair=E2=80=99: https://www.gnu.org/software/guix/manual/html_node/Invoking-guix-gc.html That will check the integrity of each item in /gnu/store (thus it=E2=80=99s= very I/O-intensive and can take a lot of time) and, if it finds a corrupt item, will try to fetch a substitute to replace it. That=E2=80=99s really a last resort, though. HTH, Ludo=E2=80=99.