Skip to main content

Automatic Updates

Enabling auto-updates for BitNinja might be essential in many cases, which is why this documentation explains in details how can you do that on any linux distribution.

Unattended Updates


Using Yum-Curl - RHEL7 / CentOS 7

  1. Install Dependencies

sudo yum install yum-cron

  1. Edit the file.

sudo nano /etc/yum/yum-cron.conf

# Update packages automatically
update_cmd = default

# Apply security updates only
apply_updates = yes

# Send email notifications
emit_via = email
email_from =
email_to =
  1. Start and Enable Yum cron on boot.

sudo systemctl start yum-cron

sudo systemctl enable yum-cron

Using DNF - RHEL8+ / CentOS 8+

  1. Install dependencies

sudo yum install dnf-automatic

  1. Edit the file.

nano /etc/dnf/automatic.conf

download_updates = yes
apply_updates = no

sudo systemctl enable --now dnf-automatic.timer


  1. Install Dependencies

sudo apt-get update

sudo apt-get install unattended-upgrades

  1. Edit the file.

sudo nano /etc/apt/apt.conf.d/50unattended-upgrades

Add BitNinja like this:

Unattended-Upgrade::Allowed-Origins {
// Extended Security Maintenance; doesn't necessarily exist for
// every release and this system may not have it installed, but if
// available, the policy for updates is such that unattended-upgrades
// should also install from here by default.
// "${distro_id}:${distro_codename}-updates";
// "${distro_id}:${distro_codename}-proposed";
// "${distro_id}:${distro_codename}-backports";
// Bitninja Repository

You can remove the rest and keep BitNinja, if you want to only autoupdate BitNinja itself and leave the OS's Security Updates, although this is isn't recommended.

  1. Save the changes and Restart the SystemD process.

sudo systemctl restart unattended-upgrades

Enjoy automatic updates for BitNinja!