LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-25-2019, 12:14 PM   #16
ehartman
Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 989

Rep: Reputation: 521Reputation: 521Reputation: 521Reputation: 521Reputation: 521Reputation: 521

Quote:
Originally Posted by derezion View Post
How do I make it so I get updates when I update Ubuntu? Would reinstalling my antivirus do the job?
No, you have to add the "ubuntu - 16.04 - updates" repo to your repo list and then the first time INSTALL the ClamAV package, as provided BY that repo.
 
Old 07-25-2019, 09:11 PM   #17
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407
Quote:
Originally Posted by derezion View Post
How do I make it so I get updates when I update Ubuntu?
Just keep doing what you've been doing. Whatever update method you've been using until now, you are doing it right, because your Clam is at the latest LTS (long-term support) version 0.100.3. Some users prefer the GUI software manager application (I forget what it's called in the menu; it's been a while since I used Ubuntu) while other users prefer terminal commands like:

Code:
sudo apt update
sudo apt dist-upgrade
Your software is not outdated. Clamav 0.100.3 and 0.101.2 were released on the same day and contain the same security patches: https://blog.clamav.net/2019/03/clam...ches-have.html

0.100.3 was released March 26 and appeared in the 'xenial' repository on April 4. The Ubuntu developers take care of their users and have a reasonable response time (about 1 week in this case). Ubuntu LTS users get stable and secure LTS software; that's the beauty of it!

There are other distros like Arch Linux that give you "rolling" updates. Arch Linux users got the clamav 0.101.2 update on March 27 (1 day). https://www.archlinux.org/packages/extra/x86_64/clamav/

Last edited by snowday; 07-25-2019 at 09:47 PM.
 
Old 07-25-2019, 09:36 PM   #18
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.6
Posts: 3,999

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
Quote:
Originally Posted by derezion View Post
Iíve been updating ClamAV by cli for like 2 years now per instructions I got from Linux Lite OSís site.
I'm confused.
You started this thread because you were seeking help about updating ClamAV. If you've been doing updates for two years from the cli, just keep doing what you've been doing. I don't understand what you're asking for help with, now.
 
1 members found this post helpful.
Old 07-26-2019, 10:48 PM   #19
derezion
LQ Newbie
 
Registered: Aug 2018
Distribution: Ubuntu
Posts: 21

Original Poster
Rep: Reputation: Disabled
Okay, when I first installed Ubuntu I researched ClamAV. I found a “how to page” on Linux Lite’s site. Among other things it had these codes:

sudo freshclam

sudo rm -rf /var/log/clamav/freshclam.log

sudo clamscan -r -i / | grep FOUND >> /home/youruser/virus-scan-report.txt

On this page:
https://www.linuxliteos.com/manual/t...html#antivirus

I forgot that Ubuntu update manager provides updates for said antivirus. I guess I should have stuck to documention for my distro.

To “@ehartman”
I don’t know how to do what you suggested. How do I add that line to my repo?

To "@scasey"
I just want my updates to be automatic.

Last edited by derezion; 07-26-2019 at 10:50 PM.
 
Old 07-27-2019, 03:55 AM   #20
ehartman
Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 989

Rep: Reputation: 521Reputation: 521Reputation: 521Reputation: 521Reputation: 521Reputation: 521
Quote:
Originally Posted by derezion View Post
To ď@ehartmanĒ
I donít know how to do what you suggested. How do I add that line to my repo?
I do not know, I never had to do administer a ubuntu system and it's even been some 5 years
since I worked with people that had one.
The university I (used to) work for never supported ubuntu, so we didn't carry the repo's for it either. They do carry the iso's, so people can install it on their own laptops etc, but from then on they're on their own.
 
Old 07-27-2019, 05:23 AM   #21
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.6
Posts: 3,999

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
Quote:
Originally Posted by derezion View Post
To "@scasey"
I just want my updates to be automatic.
Ok. That's a different question than you asked in your OP. I don't know ubuntu either.
You should be able to find specific instruction on the 'net about how ubuntu repositories work and how to use them, including how to add repositories to you configuration. Maybe start with the man pages? Usually a good place.

Generally speaking, one shouldn't mix methods for a given program. If you've been maintaining clamav manually, you'll (probably) need to remove it before you start maintaining it from the repos. Don't do that, of course, until you figure out how to use the repos to maintain it.
 
Old 07-27-2019, 09:47 AM   #22
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407
Quote:
Originally Posted by derezion View Post
Okay, when I first installed Ubuntu I researched ClamAV. I found a “how to page” on Linux Lite’s site. Among other things it had these codes:

sudo freshclam

sudo rm -rf /var/log/clamav/freshclam.log

sudo clamscan -r -i / | grep FOUND >> /home/youruser/virus-scan-report.txt

On this page:
https://www.linuxliteos.com/manual/t...html#antivirus

I forgot that Ubuntu update manager provides updates for said antivirus. I guess I should have stuck to documention for my distro.

To “@ehartman”
I don’t know how to do what you suggested. How do I add that line to my repo?

To "@scasey"
I just want my updates to be automatic.
I don't love these random instructions you are following. My two main reservations are: 1) 'sudo rm -rf' is dangerous; one typo and you're in serious trouble. 2) I don't understand the need to delete the log file; seems to me log files are a useful record of what's been done to your computer.

Please don't add any lines to your repos based on @ehartman's advice! They are well-intentioned but by their own admission are unfamiliar with Ubuntu. It is not good advice.

Regarding your "I just want my updates to be automatic" question, I can think of two easy ways: 1) You could make a 'crontab' job to run 'freshclam' at regular intervals. 2) You could write a simple bash script that combines 'freshclam' and 'clamscan' into a single command, so that every time you run the script, you are both updating and scanning with a single command.
 
1 members found this post helpful.
Old 07-28-2019, 03:08 PM   #23
derezion
LQ Newbie
 
Registered: Aug 2018
Distribution: Ubuntu
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
Ok. That's a different question than you asked in your OP. I don't know ubuntu either.
You should be able to find specific instruction on the 'net about how ubuntu repositories work and how to use them, including how to add repositories to you configuration.
You're right. It is a different question than the one I asked in my OP. Maybe I should mark this thread as solved.
 
Old 07-28-2019, 03:17 PM   #24
derezion
LQ Newbie
 
Registered: Aug 2018
Distribution: Ubuntu
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by snowpine View Post
I don't love these random instructions you are following. My two main reservations are: 1) 'sudo rm -rf' is dangerous; one typo and you're in serious trouble. 2) I don't understand the need to delete the log file; seems to me log files are a useful record of what's been done to your computer.

Please don't add any lines to your repos based on @ehartman's advice! They are well-intentioned but by their own admission are unfamiliar with Ubuntu. It is not good advice.

Regarding your "I just want my updates to be automatic" question, I can think of two easy ways: 1) You could make a 'crontab' job to run 'freshclam' at regular intervals. 2) You could write a simple bash script that combines 'freshclam' and 'clamscan' into a single command, so that every time you run the script, you are both updating and scanning with a single command.
The tutorial on https://www.linuxliteos.com/ said to run the sudo rm -rf command if
Code:
sudo freshclam
didn't work. It hasn't since the first time I ran it I think. I'll take that word of warning about adding lines to my repos. On another note, I don't know if I'm ready to make a 'crontab" or write a script. I ran the rm -rf command all these years without even thinking about what it did. I agree log files can be useful. I've heard caution in this thread about updating the way I've been doing it. Is there any downside to making crontab or a bash script?

Last edited by derezion; 07-28-2019 at 05:27 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What I know, looking for what I don't know I don't know Dontpanic Linux - Newbie 18 07-23-2019 08:37 PM
Clamav engine is outdated JackDante Debian 2 05-17-2010 08:26 AM
[SOLVED] ClamAV is outdated. gdiza Gentoo 13 05-09-2010 04:46 PM
file-scan-clamav-1.8 or clamav-0.93.1 invader44 Linux - Newbie 1 12-29-2009 09:49 AM
why clamav keep prompting me to update when its already updated Niceman2005 Linux - Software 10 04-27-2006 04:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration