When I install Ubuntu, the first thing I usually do is remove some programs and install some others. To get that done, I enter the following in a terminal:
sudo apt-get remove applicationA applicationB applicationC && sudo apt-get install applicationX applicationY applicationZ.
This works nicely, but the problem is that I have to confirm twice: first I have to confirm the removal of the applications, and after some time I have to confirm the installation of the others. It would be great if I only had to confirm once, because I wouldn't have to come back to the computer in the meantime. Is there any command to get that done?
Please note that I'm not looking for workarounds in e.g. Synaptic Package Manager. I want to do this from the command line.