PDA

View Full Version : Remove list



linuxinlive
May 8th, 2014, 08:29 AM
HI,

i have install lubuntu 14.04 works perfect.
but i whant to make a script to remove alot of programs,
i have the follo script working in mintlinu

#!/bin/sh
yes|sudo apt-get purge leafpad

chmod this to 775 than ./test.sh

and the file give me a list of Y signs
what to do now ??

THX

ian-weisser
May 8th, 2014, 12:49 PM
apt-get is interactive. Sometimes it asks for confirmation from the user.

The apt-get's -y flag will prevent confirmation by assuming the answer is 'yes'.

WARNING: Apt-get uses the interactive prompts to protect your system and data. If you tell apt-get to something bad, and force it with -y, the results are entirely your fault.