Received: from mx1.tetrasec.net (mx1.tetrasec.net [66.245.176.36]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id A6348781AC4 for <~alpine/users@lists.alpinelinux.org>; Thu, 4 Jun 2020 09:24:59 +0000 (UTC) Received: from mx1.tetrasec.net (mail.local [127.0.0.1]) by mx1.tetrasec.net (Postfix) with ESMTP id 704AEAA5D3 for <~alpine/users@lists.alpinelinux.org>; Thu, 4 Jun 2020 09:24:58 +0000 (UTC) Received: from ncopa-desktop.copa.dup.pw (67.63.200.37.customer.cdi.no [37.200.63.67]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: alpine@tanael.org) by mx1.tetrasec.net (Postfix) with ESMTPSA id DBA67AA5D2 for <~alpine/users@lists.alpinelinux.org>; Thu, 4 Jun 2020 09:24:57 +0000 (UTC) Date: Thu, 4 Jun 2020 11:24:51 +0200 From: Natanael Copa To: ~alpine/users@lists.alpinelinux.org Subject: Re: regenerate APKINDEX Message-ID: <20200604112451.40751b1f@ncopa-desktop.copa.dup.pw> In-Reply-To: <20200603232511.e6adbec0c945702f85b06add@gmail.com> References: <20200603232511.e6adbec0c945702f85b06add@gmail.com> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-alpine-linux-musl) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 3 Jun 2020 23:25:11 -0700 amc252 wrote: > By mistake I erased the latest /ver/cache/apk/APKINDEX file and now when I lst the installed packages, the list is imcomplete. Is there a way to regenerate a new APKINDEX? > apk update if you mean the installed packages database, (/lib/apk/db/installed) and you still have your /etc/apk/world intact, then you can do: `apk fix` to reinstall the packages. -nc