To install CFEngine using these repositories, as root follow the instructions for your platform.:

For Debian-based systems (apt):

  • Run the following command to manually add the repository. Make sure you type the entire command below in a single line:
    # echo "deb http://cfengine.com/pub/apt/packages stable main" > \
    /etc/apt/sources.list.d/cfengine-community.list
  • Install the package:
    # apt-get update
    # apt-get install cfengine-community

Complete community installation documentation.

For RPM-based systems with yum:

  • Download and install the CFEngine GPG key:
    # wget http://cfengine.com/pub/gpg.key
    # rpm --import gpg.key
    # rm gpg.key
  • Run the following command to create /etc/yum.repos.d/cfengine-community.repo
    cat <<EOF> /etc/yum.repos.d/cfengine-community.repo
    [cfengine-repository]
    name=CFEngine
    baseurl=http://cfengine.com/pub/yum/$basearch
    enabled=1
    gpgcheck=1
    EOF
  • Install the package
    # yum -y install cfengine-community

Complete community installation documentation.

For RPM-based systems with zypper:

# wget http://cfengine.com/pub/gpg.key
# rpm --import gpg.key

For 64 bit systems:

# zypper addrepo -t YUM http://cfengine.com/pub/yum/x86_64 cfengine-repository

For 32 bit systems:

# zypper addrepo -t YUM http://cfengine.com/pub/yum/i386 cfengine-repository

To verify that the repository was added:

#zypper se cfengine-community

Output should look like this:

S | Name               | Summary                                                 | Type
--+------------------------------------------------------------------------------+-----------
i | cfengine-community | The CFEngine Configuration System                       | package

To install cfengine community:

# zypper -n install cfengine-community

Complete community installation documentation.