[BlueOnyx:20885] Re: mass PKG uninstall - *** howto ***
Michael Stauber
mstauber at blueonyx.it
Mon Apr 10 14:53:57 -05 2017
Hi RC,
> So now I have to go and un-install 50 web-apps off each server again
I'm seeing the same on another box and here is how to automate it:
wget http://devel.blueonyx.it/pub/BlueOnyx/.scripts/pkgRemoval.pl.txt
mv pkgRemoval.pl.txt pkgRemoval.pl
chmod 755 pkgRemoval.pl
Then (IMPORTANT!) open the file in an editor.
In it you will see this list:
# List of unwanted PKGs:
@unwantedPKGs = (
'ac',
'bandwidthmeter',
'cmsmadesimple',
'contao',
'coppermine',
'cuteflow',
'dokuwiki',
....
'xbtit',
'xoops'
);
That list defines *ALL* PKGs that are getting uninstalled when you run
this script.
This list doesn't include essentials such as PHP, MySQL, MariaDB,
AV-SPAM, Automated Backup, APF, Dfix2, AWStats, RoundCube and so on.
But it removes *most* WebApps aside from RoundCube and Wordpress.
Please review the list and eliminate the lines for anything that you do
*NOT* want to uninstall.
Once you have double and triple checked the list, just run the script:
./pkgRemoval.pl
That will then dump output to the screen such as this:
]# ./pkgRemove.pl
Ignoring: OS
Ignoring: MailMan
Ignoring: solbackup
Uninstalling: flatcalendar
Uninstall successful.
Uninstalling: gallery2
Uninstall successful.
Uninstalling: joomla
Uninstall successful.
Uninstalling: oscmax
Uninstall successful.
Uninstalling: phpcoin
Uninstall successful.
Uninstalling: projectpier
Uninstall successful.
Uninstalling: simplecustomer
Uninstall successful.
--
With best regards
Michael Stauber
More information about the Blueonyx
mailing list