oio11: (Default)
[personal profile] oio11

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 disable
Now 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 stop
Now 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 remove
Now we can uninstall through Aptitude Package Manager.
# sudo apt-get remove avahi-daemon avahi-utils cups apparmor
That’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

October 2025

S M T W T F S
   1234
567891011
12131415161718
19202122 232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 3rd, 2026 06:48 pm
Powered by Dreamwidth Studios