i have tried to install clamav antivirus on linux fedora but it give the following error:
Package /home/user/Downloads/clamav-0.96.1-1.el3.rf.x86_64.rpm has incompatible architecture x86_64. Valid architectures are

how can i fix this and how can i get the one that will work on my system.

thankyou:-/

Dani AI

Generated

Short answer: the RPM you tried is a 64‑bit build targeted at Enterprise Linux 3 (the filename shows an x86_64 EL3 build), while you said your laptop is 32‑bit. That architecture/distribution mismatch triggers the “incompatible architecture” error. and correctly spotted the arch issue, and is correct that installing from Fedora’s repositories (or EPEL) is the safer route.

Quick checks you can run locally to confirm exactly what you have and what the RPM is built for:

uname -m
getconf LONG_BIT
rpm -qp --qf '%{ARCH}\n' /path/to/clamav.rpm
  • uname -mx86_64 means a 64‑bit kernel; i686/i386 means 32‑bit.
  • getconf LONG_BIT64 or 32.
  • the rpm -qp line prints the RPM’s target architecture so you can verify it’s not a 64‑bit package being installed on a 32‑bit system.

How to proceed (options ranked):

  • Preferred: install ClamAV from your Fedora package repositories (or from EPEL) so dependencies and correct arch are handled automatically. Use the package manager appropriate for your Fedora release (dnf on modern releases, yum on older ones).
  • If you must install an RPM by hand: fetch an RPM built for your exact Fedora release and for i386/i686 (do not use EL3/RPMForge EL3 packages on Fedora).
  • As a last resort build from source:
tar xzf clamav-X.Y.Z.tar.gz
cd clamav-X.Y.Z
./configure
make
sudo make install

Note: building requires development libraries (zlib, pcre, openssl, etc.) and can install to /usr/local by default. Also, for a mail or file server ClamAV’s role is to scan attachments/exports — it’s not about “Linux can’t get viruses,” it’s about protecting clients and shared files.

Recommended Answers

All 6 Replies

Looks like it wants to install on a 32 bit system or different hardware. What distro are you running?

i am runnig fedora, and my laptop is a 32 bit.

if it ends in x86_64.rpm, thats a program for 64 bit. Get the 32 bit one instead. If you want to install Clam under RHEL or Fedora, dont use the RPMs, install it using "yum install clamav"

what is that antivirus for? There is no any virus in linux

what is that antivirus for? There is no any virus in linux

I can only assume he is setting up a linux mail/file server. In which case Clam is a good idea to protect windows clients.

ClamAV works just fine as x86_64. How are you trying to install it? From source? On Fedora or RHEL, you can install x86_64 ClamAV from either the atrpms or epel repositories. Use either of these repositories and you should be able to install it just fine using yum. Most use the epel repository.

FWIW, the epel repository should be in the normal Fedora repositories. Just execute the command "yum install epel-release". Then after you install that, try "yum install clamav.x86_64".

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.