How to Disable Avahi-Daemon in CentOS

Techwalla may earn compensation through affiliate links in this story. Learn more about our affiliate and product review process here.
Avahi can detect shared printers on the network.

The Avahi-daemon service is installed on CentOS and runs automatically in the background. Avahi-daemon automatically detects shared resources on a local network and shares the computer's resources using the multicast DNS protocol. Avahi-daemon facilitates the sharing of printers, files, media libraries and other resources on a local network. If you don't want Avahi-daemon running on your system, you can disable it from the graphical services administration tool, or using the service administration commands that come with CentOS. Application features that depend on Avahi to locate shared resources and to share resources on the network won't work after you disable Avahi-daemon.

Advertisement

Graphically

Video of the Day

Step 1

Click the "System" menu at the top of the graphical desktop, roll your cursor over "Administration" and select "Services."

Video of the Day

Step 2

Type your root password into the box that appears and press Enter.

Advertisement

Step 3

Select "Avahi-daemon" in the list of background services.

Step 4

Click the "Stop" button on the toolbar in the Services window to stop Avahi-daemon.

Step 5

Clear the checkbox to the left of "Avahi-daemon" in the list to prevent Avahi-daemon from automatically starting.

Advertisement

Step 6

Click the "Save" button on the Services window to save your settings.

Terminal

Step 1

Click "Applications," go to "Accessories" and select "Terminal" to open a terminal window if you're using a graphical desktop.

Advertisement

Step 2

Type "su" into the terminal and press Enter to switch to the root user.

Step 3

Type your root password and press Enter.

Step 4

Type "/sbin/service avahi-daemon stop" into the terminal and press Enter to stop Avahi-daemon if it's running.

Advertisement

Step 5

Type "/sbin/chkconfig avahi-daemon off" into the terminal and press Enter to disable the Avahi-daemon from automatically starting.

Step 6

Type "exit" into the terminal and press Enter to leave the root shell.

Advertisement

Advertisement

references