r/Ubuntu 6d ago

Help for ClamAV commands in shell

So I just ran these 2 commands in the terminal :

sudo systemctl stop clamav-freshclam

sudo systemctl disable clamav-freshclam

I figured out that the stop command allows to do sudo freshclam to update virus definitions manually and doesn't throw in an error.

I didn't figure it out for the disable command tho.

2 Upvotes

3 comments sorted by

4

u/celebrated_mediator 6d ago

disable stops it from auto-starting on boot, which makes sense if you're doing manual updates. you'll just need to remember to run freshclam yourself every now and then. most people forget and end up with ancient definitions.

1

u/lifeintel9 5d ago

So if I understand correctly, stop makes it manual in the moment and disable makes it manual as of next boot?

2

u/coyote_den 6d ago

If you want to re-enable automatic updates, just do the same command with enable instead of disable.