Windows actually has a package manager preinstalled.
On any up-to-date Windows 10 and 11 computer that has the App Installer app installed (it should be preinstalled), you can use winget to manage your applications. Winget has the Microsoft Store and a community repository preconfigured and you can add additional sources, if you want.
You can use it via a terminal:
- Install a package:
winget install Mozilla.Firefox
- Update all applications on your computer:
winget upgrade --all
Flatpak apps can be uninstalled without leaving a trace:
flatpak uninstall --delete-data com.google.Chrome
But you might need some global overrides to make all apps write their configuration into ~/.var. Personally I globally revoke apps the permission to access filesystem= host, home, xdg-config, xdg-data.
That was actually the main reason that made me switch to Flatpak. Previously I used VMs to try out software, but with Flatpak I know that I can get rid of the application completely.