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?
On Wed, 3 Jun 2020 23:25:11 -0700
amc252 <amc252@gmail.com> 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
Thanks a lot for the prompt answer.
On Thu, 4 Jun 2020 11:24:51 +0200
Natanael Copa <ncopa@alpinelinux.org> wrote:
> On Wed, 3 Jun 2020 23:25:11 -0700> amc252 <amc252@gmail.com> 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
--
amc252 <amc252@gmail.com>
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"