marticliment / UniGetUI

UniGetUI: The Graphical Interface for your package managers. Could be terribly described as a package manager manager to manage your package managers
https://www.marticliment.com/unigetui/
MIT License
13.21k stars 454 forks source link

[MANAGER] WSL Package Managers #1490

Open ppvnf opened 1 year ago

ppvnf commented 1 year ago

This is the same proposal as #1241, right?

possibly, but here he mentions snap and flatpak. Maybe an integration with WSL would be nice as well

Originally posted by @ppvnf in https://github.com/marticliment/WingetUI/issues/1307#issuecomment-1756842333

MrStanDu33 commented 10 months ago

I think it could be nice to access all package managers in each distros from this tool !

Not sure tho how it could be implemented in the UI itself 🫤

Andrew-J-Larson commented 10 months ago

I think it could be nice to access all package managers in each distros from this tool !

Not sure tho how it could be implemented in the UI itself 🫤

  1. Get list of available WSL distros (wsl -l)
  2. For each distro, check for all available package managers (e.g. apt, pac, snap, flatpak, etc.)... and/or in the future use apx since Vanilla OS plans to make it a distro independent all-in-one package manager, which would cut down a lot of work that would be needed for Winget UI) a. If not using apx, it would need to manually gather lists from each package manager and execute their commands. b. If using apx, checking updates, and updating would be very simple to implement. The only little downside is a one-time install of apx into each WSL distro. I believe apx development is done, but I'll double check.

(edited since I was confused on the status of apx vs another command they have)

Andrew-J-Larson commented 10 months ago

Yep, apx appears to be stable at version 2.3.0 (at time of writing) and completely distro independent, so we should probably look at integrating support for that through Winget UI

Andrew-J-Larson commented 10 months ago

Of course though, would need to include a warning about installing vso in each distro... and probably want more delicate control for any arch based distros, since you don't always want to upgrade everything there...

Andrew-J-Larson commented 10 months ago

The instructions for using apx on other distros is available on its source page:

Andrew-J-Larson commented 10 months ago

Ah wait, reading more into apx, just realized it would just manage specific subsystems, but either way most of the work is done, just would have to fork the software, make changes so that interacts with the distro that it's in (rather than an assumed subsystem), and then things should work just fine... (but if someone has vanilla os as a WSL distro, or apx already installed in one of their distros, probably wouldn't want to overwrite it).

Andrew-J-Larson commented 10 months ago

Another option might be upm (universal package manager), but it was last updated 2 years ago

marticliment commented 10 months ago

I will take this suggestions into account