~alpine/users

3 3

regenerate APKINDEX

amc252
Details
Message ID
<20200603232511.e6adbec0c945702f85b06add@gmail.com>
DKIM signature
missing
Download raw message
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?
Details
Message ID
<20200604112451.40751b1f@ncopa-desktop.copa.dup.pw>
In-Reply-To
<20200603232511.e6adbec0c945702f85b06add@gmail.com> (view parent)
DKIM signature
missing
Download raw message
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
Details
Message ID
<20200604103430.b63fc5b5f669bdc9fd3c8e6b@gmail.com>
In-Reply-To
<20200604112451.40751b1f@ncopa-desktop.copa.dup.pw> (view parent)
DKIM signature
missing
Download raw message
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>
Ariadne Conill
Details
Message ID
<3294022.7VNl89jVkd@localhost>
In-Reply-To
<20200603232511.e6adbec0c945702f85b06add@gmail.com> (view parent)
DKIM signature
missing
Download raw message
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"