Configuring CFEngine Linux Package Repositories

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

NOTE: If your distribution is using systemd, you should consider to get a package supporting it from the community edition download page.

CFEngine GPG Key Fingerprint:

8506 14F6 5F7C 0069 79BC  F9EA 7061 B663 A86E 7AFA

 

For Debian-based systems (apt):

Please note: You may need to install apt-transport-https in order to be able to use HTTPS sources. (apt-get install apt-transport-https). For very old distributions (Debian 4) you may have to change the URL from HTTPS to HTTP.

  • Download and install the CFEngine GPG key:
    # wget -qO- https://cfengine-package-repos.s3.amazonaws.com/pub/gpg.key | apt-key add -
  • Run the following command to manually add the repository. Make sure you type the entire command below in a single line:
    # echo "deb https://cfengine-package-repos.s3.amazonaws.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:
    # rpm --import https://cfengine-package-repos.s3.amazonaws.com/pub/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=https://cfengine-package-repos.s3.amazonaws.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:

# rpm --import https://cfengine-package-repos.s3.amazonaws.com/pub/gpg.key

For 64 bit systems:

# zypper addrepo -t YUM https://cfengine-package-repos.s3.amazonaws.com/pub/yum/x86_64 cfengine-repository

For 32 bit systems:

# zypper addrepo -t YUM https://cfengine-package-repos.s3.amazonaws.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.