Subject: regenerate APKINDEX

From: amc252 <[email-masked]>
Date: Wed, 3 Jun 2020 23:25:11 -0700

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?

---

From: Natanael Copa <[email-masked]>
Date: Thu, 4 Jun 2020 11:24:51 +0200

On Wed, 3 Jun 2020 23:25:11 -0700

> 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

---

From: amc252 <[email-masked]>
Date: Thu, 4 Jun 2020 10:34:30 -0700

Thanks a lot for the prompt answer.

On Thu, 4 Jun 2020 11:24:51 +0200

-- 
amc252 <[email-masked]>

---

From: Ariadne Conill <[email-masked]>
Date: Fri, 05 Jun 2020 00:15:02 -0600

On Thursday, June 4, 2020 12:25:11 AM MDT 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?

run "apk update"