How to completely remove APF from Ubuntu

Running 'apt-get remove --purge apf-firewall' often times is not enough, especially if you tried to modify APF's files and paths. So to completely clean up your Ubuntu system form APF (Advanced Policy Firewall) your also need to run the following commands:

root@host:/etc/apt# rm -rf /var/lib/dpkg/info/apf*
root@host:/etc/apt# rm -rf /usr/src/apf*
root@host:/etc/apt# rm -rf /usr/share/man/man1/apf*
root@host:/etc/apt# rm -rf /usr/share/doc/apf*
root@host:/etc/apt# rm -rf /usr/local/sbin/apf
root@host:/etc/apt# rm -rf /usr/sbin/apf
root@host:/etc/apt# rm -rf /etc/rc0.d/K20apf*
root@host:/etc/apt# rm -rf /etc/apf*
root@host:/etc/apt# rm -rf /etc/default/ap*
root@host:/etc/apt# rm -rf /etc/logrotate.d/apf*
root@host:/etc/apt# rm -rf /etc/rc1.d/K20apf*
root@host:/etc/apt# rm -rf /var/lib/update-rc.d/apf*
root@host:/etc/apt# rm -rf /etc/rc2.d/S20apf*
root@host:/etc/apt# rm -rf /etc/rc3.d/S20apf*
root@host:/etc/apt# rm -rf /etc/rc4.d/S20apf*
root@host:/etc/apt# rm -rf /etc/rc5.d/S20apf*
root@host:/etc/apt# rm -rf /etc/rc6.d/K20apf*

Add new comment

Filtered HTML

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
To