Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id CCF8D780DFE for <~alpine/users@lists.alpinelinux.org>; Thu, 9 Jun 2022 16:44:24 +0000 (UTC) Received: by mail-wr1-f43.google.com with SMTP id q15so25144536wrc.11 for <~alpine/users@lists.alpinelinux.org>; Thu, 09 Jun 2022 09:44:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ivbRWL90mSIwQvuj0ruT6nYh6Ohyjj2whbMtnLcq8Ps=; b=DRON9DsmzFamlFvXxNTDT/FPGYNgfkBnaGox07h6KVZOLS4PD5WgLd/CpeKGmIifd+ RhUvpd3EkSRU3CKVHcBcSGsESm90e3sEg5f4VvMbEbamW1NC37K199pzIJZcTv6fxxb/ bAj4VFaaXK0yLZR73Q6XPBO1t3PzpFIC69LdO5oC/V2iyauNPtv0FkybX3BsN+RlZ9sZ 4tKhWREEcCR/jpB63lJGFrJlQR7hvYk6/H7EFDpU8YmjWU+OV7Wn/KpBW4JvAeM5DShl PvQDGswYlJiTYAwRr06bLkaqeORGyFW0zO/TNC2CBSzYc+XTAIMFt68aAKKsUvxLchG6 wV5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ivbRWL90mSIwQvuj0ruT6nYh6Ohyjj2whbMtnLcq8Ps=; b=LYoQeyeBUm7ArAW+/Mn84Dud+UUMdzRn8i7qA9OTlv7AN8/+jczQe0Or62U1RbzuOP Bvh2ExqyMWRvycPewQNcrzLfq1FAoCAfhKpabCcI8sWsXZzwyddlTx+9VrOsqsCyUY0C F8M1d40WhWJC/fgjCQIr3sRM+yrZieaRHHFn8iqivyEGrECoLd5jPaHZhbprxUa+cMo/ f91qfenH++Wvv4HZ6wZdk2DU9uCQKlOftX8midu7+5DcECs9NWZrz+9JXvCYod9m+yAA WFnblaBwcDukF4ZDs/Q4+kI1GBf0ZzMyOsidYwzHIujAMLeXCDx7Hab++4hMNXjjmlN1 zIzA== X-Gm-Message-State: AOAM530GezLylvHwGMtJKp7g1zLP54YYCspND0ouMG6Ky+h25cNqywsa tlyCh6XqP9Tta/K/cek47dQ4ac5zE1S/+67HKLu0/7bR X-Google-Smtp-Source: ABdhPJwW54rUjh3EwxDrRJbtEJMD1jDR9ic/GcW4T3l2C0Krfqy52gdhtB0AwNx2p1KDbGctmRC9QyzTYSkShh5Lkp4= X-Received: by 2002:adf:e384:0:b0:213:b1d4:a964 with SMTP id e4-20020adfe384000000b00213b1d4a964mr36733205wrm.653.1654793064251; Thu, 09 Jun 2022 09:44:24 -0700 (PDT) MIME-Version: 1.0 References: <8619cc32441a147f7b84865df0f2f17a@tower-net.de> <2778DCF7-578A-4C89-8ABD-2097EC778716@tower-net.de> In-Reply-To: <2778DCF7-578A-4C89-8ABD-2097EC778716@tower-net.de> From: Konstantin Kulikov Date: Thu, 9 Jun 2022 19:44:13 +0300 Message-ID: Subject: Re: List installed packages by repository? To: Markus Kolb Cc: Alpine Linux users ML <~alpine/users@lists.alpinelinux.org> Content-Type: text/plain; charset="UTF-8" I don't think packages have repo metadata recorded in them. I also don't see such data recorded in /lib/apk/db/installed. How about disabling edge repo and running apk update && apk upgrade -a --simulate, then inspecting what gets downgraded? On Thu, Jun 9, 2022 at 6:06 PM Markus Kolb wrote: > > Am 9. Juni 2022 14:33:22 UTC schrieb Konstantin Kulikov : >> >> apk policy $(cat /etc/apk/world) >> >> On Thu, Jun 9, 2022 at 4:31 PM Markus Kolb >> wrote: >>> >>> >>> Hello, >>> >>> is there a way to find out from which repository a package got installed >>> in the system? >>> >>> I've a Docker image where edge is added to repositories. >>> Now I'd like to see if there has been installed anything from edge in >>> this image. >>> >>> Thanks > > > This outputs not the repository where the package got downloaded and installed from. > It simply looks up package name in cached repositories and lists the found version in cached repository. > So to say, if I change repository version from v3.15 to v3.16 this lists higher versions of the packages and says it is available in v3.16-repo, but I don't know if the currently installed package got installed from v3.14, 3.15, 3.16, edge or whatever.