I am wondering if a Mono C# application running in Ubuntu can somehow run a terminal command. For example, could the user give the program his or her password and then have the application run
sudo apt-get install application-name
(console requests password)
(console requests confirmation)
Preferably, this would be done without actually opening a terminal visible to the user, so that the application could provide the necessary feedback and manage the whole operation cleanly with as little user interaction as possible.
Is there a way to do that? If so, how? Let me know if clarification is needed. Thank you!