GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Home
  • Pipelines
  • Modules
  • Subworkflows
  • Shared configs
  • nft-utils
  • nf-core-utils
  • setup-nextflow
  • setup-nf-test
  • Docs
  • Advisories
  • Blog
  • Newsletter
  • Bytesize Talks

This view

  • Original page
  • New address

GeezerVison is showing nf-co.re — Docs: Installing Nextflow

Installing Nextflow
Edit

Install Nextflow

Installing Nextflow

Nextflow is the workflow management system that runs all nf-core pipelines. This page will walk you through installing and configuring Nextflow on your system.

Prerequisites

You will need the following to get started:

  • Bash version 3.2 or later
  • Java version 17 or later (up to Java 25)

For the latest instructions, see the Nextflow installation guide.

Install Java

The easiest way to install Java is using SDKMAN:

  1. Install SDKMAN:

    curl -s https://get.sdkman.io | bash
  2. Open a new terminal.

  3. Install Java:

    sdk install java
  4. Confirm that Java is installed correctly:

    java -version

Install Nextflow

Nextflow is distributed as an easy to use self-installing package. It is also distributed via Conda and as a standalone distribution.

The self-installing package is recommended as it ensures you always get the latest version and handles dependencies automatically.

Self-installing package

To install Nextflow with the self-installing package:

  1. Download and install Nextflow:

    curl -s https://get.nextflow.io | bash
  2. Make the binary executable:

    chmod +x nextflow
  3. Move Nextflow to a directory in your $PATH:

    mkdir -p $HOME/.local/bin/
    mv nextflow $HOME/.local/bin/
    Note

    Common directories on Linux or OSX operating systems for executables include $HOME/.local/bin/, /usr/local/bin/, or $HOME/bin/. Make sure the directory you choose is in your $PATH environment variable.

  4. Verify the installation:

    nextflow info

Conda installation

To install Nextflow with Conda:

  1. Create an environment with Nextflow:

    conda create --name nf-env bioconda::nextflow
  2. Activate the environment:

    conda activate nf-env
  3. Confirm Nextflow is installed correctly:

    nextflow info
Warning

The Conda installation method is not recommended as it may install outdated versions and cause dependency conflicts. Use the self-installing package method when possible.

Standalone distribution

For offline or restricted environments, you can download a pre-built executable from the Nextflow GitHub releases.

To use the standalone distribution:

  1. Download the standalone distribution from Assets section of the GitHub releases page.

  2. Grant execution permissions to the downloaded file. For example:

    chmod +x nextflow-25.10.0-dist
  3. Move Nextflow to a directory in your $PATH:

    mkdir -p $HOME/.local/bin/
    mv nextflow-25.10.0-dist $HOME/.local/bin/
    Note

    Common directories on Linux or OSX operating systems for executables include $HOME/.local/bin/, /usr/local/bin/, or $HOME/bin/. Make sure the directory you choose is in your $PATH environment variable.

  4. Use it as a drop-in replacement for nextflow command. For example:

    nextflow-25.10.0-dist info

Replace 25.10.0 with your desired version number.

Update Nextflow

To use the latest Nextflow features or run specific versions of pipelines, you may need to update or pin your version of Nextflow.

Update to the latest stable version

To update Nextflow to the latest stable release, run:

nextflow self-update

Pin a specific version

To pin a specific Nextflow version:

  • For a single command, prefix the Nextflow command with the NXF_VER variable:

    NXF_VER=23.10.0 nextflow run nf-core/rnaseq
  • For your current terminal session, export the NXF_VER variable:

    export NXF_VER=23.10.0
  • For persistent usage, add the export NXF_VER variable command to ~/.bashrc or ~/.zshrc:

    export NXF_VER=23.10.0
Tip

Pinning a specific Nextflow version can help ensure reproducibility across different runs and environments.

On this page
  • Get started
    • What is nf-core?
    • Environment setup
      • Overview
      • Nextflow
      • Software dependencies
      • nf-core tools
      • VS Code
      • Dev Containers
      • Prettier
      • Troubleshooting
    • Run your first pipeline
  • Running
    • Overview
    • Advanced topics
      • Google Colab
      • Managing work directory growth
    • Configuration
      • Configuration options
      • GPU pipelines
      • System requirements
      • Troubleshooting
    • Reference genomes
    • Running pipelines
    • Running pipelines offline
    • Troubleshooting
    • Tutorials
      • Configure a pipeline run
  • Developing
    • Overview
    • Testing
      • Overview
      • Assertions
      • Advanced assertions
      • CI runners
    • Components
      • Automated methods
      • Creating components
      • Cross organisational components
      • Deprecating components
      • ext arguments
      • GPU modules
      • Meta maps
      • Setting custom remotes
    • Containers
      • ARM64 on Bioconda
      • Seqera Containers
    • Documentation
      • Harshil alignment
      • Style guide
      • Topic types
      • Website Markdown
    • External use
    • Institutional profiles
      • Overview
      • Configuration
      • Documentation
      • File structure
      • nf-core/configs outside nf-core
      • Preparing to write
      • Testing
      • Troubleshooting
    • Migration guides
      • Migrating to strict syntax
      • Migrating to topic channels
    • Pipelines
      • Adding modules
      • Renaming branches
      • Template files
    • Template syncs
      • Overview
      • Fixing a broken TEMPLATE branch
      • Manually syncing your pipeline
      • Merging automated PRs
      • Setting up a pipeline sync retrospectively
    • Tutorials
      • Writing nf-core modules
        • Chapter 1: Introduction
        • Chapter 2: Getting started
        • Chapter 3: What is a module?
        • Chapter 4: Boilerplate files
        • Chapter 5: Writing modules
        • Chapter 6: Testing modules
        • Chapter 7: Development workflow
        • Chapter 8: Using modules
  • Contributing
    • Overview
    • How to contribute
    • Components
    • Contributor types
    • Contributor's list
    • Documentation
    • Existing pipelines
    • New pipelines
    • Project proposals
    • Release procedure
    • Reviewing pull requests
      • Codeowners
      • nf-core bot
      • Review checklists
        • Reviewing components
        • Reviewing configs
        • Reviewing nf-core/tools
        • Reviewing pipeline releases
    • Two factor authentication
  • Specifications
    • Overview
    • Components
      • Overview
      • Modules
        • General
        • Naming conventions
        • Input/output Options
        • Documentation
        • Parameters
        • Resource requirements
        • Software
        • Testing
        • Formatting
      • Subworkflows
        • General
        • Naming conventions
        • Input output options
        • Subworkflow parameters
        • Documentation
        • Testing
        • Formatting
    • Configs
      • Documentation
      • General
      • Maintenance and deprecation
      • Overview
      • Formatting
    • Pipelines
      • Overview
      • Recommendations
        • Publication credit
        • Testing
        • Bioconda
        • Build with community
        • Cloud compatible
        • Custom containers
        • DOIs
        • File formats
      • Requirements
        • Acknowledgements
        • CI testing
        • Community owned
        • Docker
        • Documentation
        • Git branches
        • Identity branding
        • Keywords
        • Linting
        • Minimum inputs
        • MIT license
        • Nextflow
        • Parameters
        • RO Crate
        • Semantic versioning
        • Single command
        • Use the template
        • Workflow name
        • Workflow size
        • Workflow specificity
      • Very important pipelines
    • Reviews
      • Overview
      • Request reviewers
      • Rapid merge
      • Review scope
      • Commit strategy
    • Test data
      • Overview
      • General
      • Modules
  • Community
    • Overview
    • Advisories
    • Brand
      • Overview
      • Colours
      • Fonts
      • Logos
      • Presentations
      • Workflow schematics
    • Governance
      • Core team tasks
      • Maintainers tasks
      • Teams
    • Regulatory
      • Overview
      • Checklist
    • Terminology
    • Very important pipelines
  • nf-core/tools
    • CLI
      • Installation
      • Pipelines
        • create
        • list
        • launch
        • create params file
        • download
        • licences
        • rocrate
        • lint
        • schema
        • bump version
        • sync
        • create logo
      • Modules
        • list
        • info
        • install
        • update
        • remove
        • patch
        • create
        • lint
        • test
        • bump versions
      • Subworkflows
        • list
        • info
        • install
        • update
        • remove
        • create
        • lint
        • test
      • Test datasets
        • list
        • list branches
        • search
      • TUI
    • API
    • nf-core utils
      • nf-core Utilities Guide
      • Nextflow Pipeline Extension
      • References Extension Guide
      • Utilities
        • NfcoreCitationUtils
        • Configuration Validation Tutorial
        • Pipeline Notifications Tutorial
        • NfcoreReportingOrchestrator
        • MultiQC Integration Tutorial
        • NfcoreVersionUtils
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.