The method to remove SpamAssassin depends on how it was installed. If SpamAssassin is installed using RPM, for example, then it should be uninstalled in the same manner. Failing to do this can cause problems either immediately or at some time in the future.
If SpamAssassin was installed from source, either using the CPAN module or manually, there is no simple command to uninstall it.
When Perl installs a module, it creates a list of files that are installed as part of the module. This packlist, as it is called, is usually located at /usr/lib/perl5/site_perl/<perl-version>/<arch>/auto/Mail/SpamAssassin/.packlist
.
The<perl-version>
and<arch>
should be replaced with the appropriate values, for example 5.8.2
for the perl-version
and i686-linux
for the architecture. To locate all packing lists, use the find
command:
# find /usr/lib/perl5/ -name .packlist | grep SpamAssassin
/usr/lib/perl5/site_perl/5.8.2/i686-linux/auto/Mail/SpamAssassin...