MaldiGola
07-09-2008, 03:26 PM
I have started the remastering process working off the 5.3.1 DVD release. I know the packages I want to remove and have compiled them into a text file.
I thought I would just make a simple bash script to remove them, but it always aborts after a few minutes with no real info as to why.
Here is what I have:
#!/bin/bash
apt-get --force-yes --purge remove packagename
If I run each command it works, but not in the script
I have also tried:
cat filewithnames.txt | xargs apt-get --force-yes --purge remove
This ends with the following: "Do you want to continue? Y/n Abort"
Same issue.
For the record, there are approx. 2500 packages that I want to remove. Is there a hard limit?
I thought I would just make a simple bash script to remove them, but it always aborts after a few minutes with no real info as to why.
Here is what I have:
#!/bin/bash
apt-get --force-yes --purge remove packagename
If I run each command it works, but not in the script
I have also tried:
cat filewithnames.txt | xargs apt-get --force-yes --purge remove
This ends with the following: "Do you want to continue? Y/n Abort"
Same issue.
For the record, there are approx. 2500 packages that I want to remove. Is there a hard limit?