Get the latest tech news
How many Alpine packages can you install at once? (2024)
Using a constraint solver to attempt to install as much of the Alpine Linux repositories as possible.
Additionally, we need an objective function: a goal for the constraint solver to maximise, which in our case is the total of number of packages installed. The majority of the nuances around virtual packages and providers were not present in my initial tests, which were also missing the entire concept of the i: field. APK gives an explanation of which packages conflict, so I would read their entries in the APKINDEX file to understand why that happened before adding the relevant constraints.
Or read this on Hacker News