I am using "apt-get remove" to remove a package but during installation it asks me to enter yes/no twice for two different reason.
So I want my input to be yes for first question and no for second question.
Below is the code I am using with '-y' as option but it sets yes for all interaction.
apt-get --purge -y -f remove grub-pc
Can anyone tell me how to achieve what I have mentioned?