Hello, does anyone know how I would send a command like "sudo pacman -Syu" in Java.
If that doesnt make sence here is what I mean. I want to make a Java program that will with buttons or something do a system update or something else but how will I get the code to come out like an actual terminal code. So here is a diagram to help me explain.
User ----> Java program -------> user clicks button in program -------> button executes code "sudo pacman -Syu" ------> System does what code is supposed to do "System upgrades".
I want to do this so I can try to learn a ton of different package managers and make one universial package manager like how Synaptics is used on Debian based systems to find and download the packages and the user not have to touch the command line.
Sorry about the simple spelling errors it is late where I am.