Creating a RPM package for Clam Antivirus – FC9

#useradd clamav
#yum install rpmdevtools
#su - clamav

The following directory structure will be created:

     /   /      |    \      \

Create a spec file in the folder ~/rpmbuild/SPECS/clam.spec. After that use rpmlint to check the spec file.

$rpmlint clam.spec

To create a src package
$rpmbuild -bs clam.spec

To create a binary file
$rpmbuild -ba clam.spec

Now if it was successful you will have a binary rpm or src.rpm in the directory:

The packages are available in the following addresses:


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 )

Google photo

You are commenting using your Google 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

%d bloggers like this: