def METHOD_NAME(version, *, dry_run=False):
    command = 'apt-get install'
    options = [
        '-o', 'Dpkg::Options::="--force-confnew"',
        '--assume-yes', '--force-yes', '--only-upgrade',
    ]
    if dry_run:
        options.append('--dry-run')
    return '{command} {options_joined} magma={version}'.format(
        command=command,
        options_joined=' '.join(options),
        version=version,
    )