Posted by: kezhong | April 27, 2011

How to uninstall APF and BFD

I installed apf-9.7-1 and bfd-1.4 for a customer before. For some reason, they want me to help them remove apf and bfd. The following are steps.

Remove APF
# service apf stop
# chkconfig apf off
# rm -rf /etc/apf
# rm -f /etc/rc.d/init.d/apf
# rm -f /etc/logrotate.d/apf
# rm -f /etc/cron.daily/apf
# rm -f /etc/cron.d/refresh.apf
# rm -f /usr/local/sbin/apf
# rm -f /var/log/apf_log*
Check if there are “echo /etc/apf/apf -s >> /dev/null 2>&1” statement in the /etc/rc.local file or not, if so, delete it.

Remove BFD
# rm -rf /usr/local/bfd
# rm -f /usr/local/sbin/bfd
# rm -f /etc/cron.d/bfd
# rm -f /etc/cron.daily/bfd
# rm -f /etc/logrotate.d/bfd
# rm -f /var/log/bfd_log*


Responses

  1. thanks! i need this.

  2. Thank kezhoung, i have uninstalled apf by this guide http://www.hackersgarage.com/how-to-install-or-uninstall-apf-advance-policy-firewall-on-centos-ubuntu-backtrack-or-any-linux-distro.html

    may help others.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: