The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 2,867 other followers

Linux: getting the correct license file for AntiVir

Posted by jpluimers on 2014/04/29

I needed AntiVir on an openSUSE workstation.

Too bad the default installation package from YaST installed an old license: AntiVir would not work, and I was getting emails like these at regular intervals:

<br />Date: Thu, 25 Apr 2014 08:57:11 +0200<br />From: Cron Daemon &lt;root@....&gt;<br />To: root@....<br />Subject: Cron &lt;root@...&gt; /usr/lib/AntiVir/guard/avupdate-guard --product=Scanner &gt; /dev/null<br /><br />Error: No valid license was found<br />

After searching the web for a while, I found a lot of posts with wrong information, basically coming down to these 2:

At the bottom of the post, you will find a small shell script that I use to keep the hbedv.key up-to-date.

First some more about HBEDV, then how I found about the new download location, and a command to show you the current license information.

Antivir Download locations

From the plethora of links at Avira Download Center, I finally reached the Download Avira Free Antivirus page at

There you find links to the unix download (marked as ZIP, though it is a .tar.gz file) and the download for the key.

The key is now at

Getting hbedv.key license information

avlinfo can get you the information from the license, and tells you where the license on your system is stored, here is an example of the expired installation key.

Without parameters, it will list the installed key (and location!)

You can specify both a directory (it will search for hbedv.key in that directory) or filename to get the information from that file.

<br />snap:~/bin # avlinfo<br />==============================<br />Key file:         /usr/bin/../lib/AntiVir/guard/hbedv.key<br /><br />Product : Avira AntiVir Personal (Windows-NT)<br />Serial #: 0000149996-ADJIE-0000001<br />Expires : 2.1.2013<br />User    : Avira AntiVir Personal - Free Antivirus<br /><br />Product : Avira AntiVir Personal (Unix)<br />Serial #: 0000149996-PXWSE-0000001<br />Expires : 2.1.2013<br />User    : Avira AntiVir Personal - Free Antivirus<br />

Making the install process easier

Though I do *nix administration, it is not my day-to-day job, so programming the shell isn’t either.

I try to create scripts making my job as simple as possible, so I do create scripts for repetitive work as much as possible.

Some notes reminders for myself:

Here is the script:

<br />#! /bin/sh<br /><br />HbedvKey=hbedv.key<br />## Old location: 2011-07-25<br />$HbedvKey<br />## New location: changed somwehere in 2012?<br />$HbedvKey<br />HttpHbedvKeyDownloadPath=http://$HbedvKeyDownloadPath<br />UsrLibAntivirGuard=/usr/lib/AntiVir/guard<br />UsrLibAntivirGuardNew=$UsrLibAntivirGuard/new<br />UsrLibAntivirGuardHbedvKey=$UsrLibAntivirGuard/$HbedvKey<br />UsrLibAntivirGuardNewHbedvKey=$UsrLibAntivirGuardNew/$HbedvKeyDownloadPath<br /><br />echo "$HttpHbedvKeyDownloadPath"<br />echo "$UsrLibAntivirGuardHbedvKey"<br />echo "$UsrLibAntivirGuardNewHbedvKey"<br /><br />mkdir -p $UsrLibAntivirGuardNew<br /># -p: create if it does not exist<br /><br />pushd $UsrLibAntivirGuardNew<br /><br />wget -q --mirror --no-parent $HttpHbedvKeyDownloadPath<br />ls --full-time $UsrLibAntivirGuardNewHbedvKey<br /><br />if (test -e $UsrLibAntivirGuardNewHbedvKey)<br />then<br /><br /><%%KEEPWHITESPACE%%>  diff $UsrLibAntivirGuardHbedvKey $UsrLibAntivirGuardNewHbedvKey<br /><%%KEEPWHITESPACE%%>  # diff exit status 0: same; 1: different; 2: trouble<br /><br /><%%KEEPWHITESPACE%%>  if [ "$?" -ne "0" ]<br /><%%KEEPWHITESPACE%%>  then<br /><%%KEEPWHITESPACE%%>  # if $UsrLibAntivirGuardNewHbedvKey does not exist, or $UsrLibAntivirGuardHbedvKey is different from $UsrLibAntivirGuardNewHbedvKey<br /><br /><%%KEEPWHITESPACE%%>    echo "There is a $UsrLibAntivirGuardNewHbedvKey file that you might want to update into $UsrLibAntivirGuardHbedvKey"<br /><%%KEEPWHITESPACE%%>    echo ""<br /><%%KEEPWHITESPACE%%>    echo "Current key"<br /><%%KEEPWHITESPACE%%>    avlinfo $UsrLibAntivirGuardHbedvKey<br /><%%KEEPWHITESPACE%%>    echo ""<br /><%%KEEPWHITESPACE%%>    echo "Downloaded key"<br /><%%KEEPWHITESPACE%%>    avlinfo $UsrLibAntivirGuardNewHbedvKey<br /><%%KEEPWHITESPACE%%>  fi<br /><br />fi<br />popd<br />

A few more links for my memory:

  1. Windows download:
    will start web bootstrap EXE download when web page losds
  2. More versions:
  3. Web bootstrap for Windows
  4. Administrtive download for off-line install
  5. Linux
  6. Key
  7. PDF documentation
  8. Old key


3 Responses to “Linux: getting the correct license file for AntiVir”

  1. […] A short while ago, I wrote about Linux: getting the correct license file for AntiVir. […]

  2. Gustavo Carreno said

    Hummmm, let me rephrase:

    This post is quite good, but for some strange reason all your <code> is full of HTML tags.

  3. This post is quite good, but for some strange reason all your is full of HTML tags.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: