Remove CUPS, Avahi-daemon, and Apparmor from Ubuntu
Posted: February 5, 2012 in *nixCUPS is the standards-based, open source printing system developed by Apple Inc. used not only on Linux system but MacOSX as well.AppArmor (“Application Armor”) is a security module for the Linux kernel, released under the GNU General Public License. AppArmor allows the system administrator to associate with each program a security profile that restricts the capabilities of that program.
Avahi is a system which facilitates service discovery on a local network via the mDNS/DNS-SD protocol suite. This enables you to plug your laptop or computer into a network and instantly be able to view other people who you can chat with, find printers to print to or find files being shared.
To remove these applications they must be disabled and removed by managing the services through ‘update-rc.d’. To do this first issue the following commands:
# sudo update-rc.d avahi-daemon disable # sudo update-rc.d apparmor disable # sudo update-rc.d cups disableNow the services can be stopped using the scripts in the /etc/init.d/ directory.
# sudo /etc/init.d/cups stop # sudo /etc/init.d/avahi-daemon stop # sudo /etc/init.d/apparmor stopNow that the services are stopped we can go ahead and remove them.
# sudo update-rc.d -f apparmor remove # sudo update-rc.d -f avahi-daemon remove # sudo update-rc.d -f cups removeNow we can uninstall through Aptitude Package Manager.
# sudo apt-get remove avahi-daemon avahi-utils cups apparmorThat’s it! Reboot and run the below commands to verify all services have stopped and are not running on any ports.
# ps aux | more # netstat -an | more