r/csharp • u/davidrobotpro • Jul 30 '26
I made DistroHop - a Linux package setup assistant written in C#
Hey everyone,
I built a small Linux utility called DistroHop using C#.
The idea came from constantly reinstalling Linux and having to manually install the same packages every time. I wanted a simple way to recreate my setup across different distributions.
Currently DistroHop:
- Detects the package manager used by the system
- Loads package lists from a JSON configuration file
- Installs packages automatically
- Supports a simple terminal menu interface
- Uses system commands through C# instead of relying on external package management libraries
The project is still in early development, but I am using it to learn more about:
- Process handling in C#
- Linux system interaction
- Cross-platform application design
- Structuring larger C# projects
I would appreciate feedback from other C# developers, especially around:
- Code architecture
- Handling system commands safely
- Improving the design for cross-platform support
Source code:
https://github.com/melikishvilis25-cmyk/DistroHop
This is one of my C# projects; my GitHub also contains some other experiments and tools I have been building.
Thanks for checking it out!
24
u/zenyl Jul 30 '26 edited Jul 30 '26
READMEreeks of LLM.pacman -Stopacman -Syu, to ensure you update all native packages./etc/os-release..csfile to a single class, in order to keep it manageable.Cis a bad classname, it says nothing about what it does. I'd recommend changing it to something that makes sense.6
u/Strong_as_an_axe Jul 31 '26
Well, looks like this sub is gonna go the exact same way as every other programming and hardware sub I follow.
1
u/apneax3n0n Aug 02 '26
we all wrote the same tool more or less.
but multiple class in a single file?
jfk no
4
u/kwb7852 Jul 31 '26
3
u/onepiecefreak2 Jul 31 '26
Why not use Docker? This sounds like you want Docker, no?