DEV Community

Cover image for Pulumi Installation - Ubuntu & Windows
Unni P
Unni P

Posted on • Originally published at iamunnip.hashnode.dev

1

Pulumi Installation - Ubuntu & Windows

In this article, we will look how we can install Pulumi on Ubuntu using Homebrew and in Windows using Scoop

Ubuntu

Install some prerequisite packages

sudo apt update
Enter fullscreen mode Exit fullscreen mode
sudo apt install build-essential procps curl file git
Enter fullscreen mode Exit fullscreen mode

Install Homebrew using the provided convenience script

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Enter fullscreen mode Exit fullscreen mode

Add Homebrew in our system PATH using the below commands

(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/ubuntu/.profile
Enter fullscreen mode Exit fullscreen mode
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
Enter fullscreen mode Exit fullscreen mode

Verify the version and install the recommended gcc package

brew --version
Enter fullscreen mode Exit fullscreen mode
brew install gcc
Enter fullscreen mode Exit fullscreen mode

Turn off Homebrew anonymous aggregate user behavior analytics

brew analytics off
Enter fullscreen mode Exit fullscreen mode

Install Pulumi and verify its version

brew install pulumi
Enter fullscreen mode Exit fullscreen mode
pulumi version
Enter fullscreen mode Exit fullscreen mode

Install the language runtime of your choice and verify its version

sudo apt install python3 python3-pip python3-venv
Enter fullscreen mode Exit fullscreen mode
python3 --version
Enter fullscreen mode Exit fullscreen mode

Windows

Open a Powershell terminal (version 5.1 or above) and execute the below commands to install Scoop

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Enter fullscreen mode Exit fullscreen mode
irm get.scoop.sh | iex
Enter fullscreen mode Exit fullscreen mode

Install Pulumi and verify its version

scoop install pulumi
Enter fullscreen mode Exit fullscreen mode
pulumi version
Enter fullscreen mode Exit fullscreen mode

Install the language runtime of your choice and verify its version

scoop install python
Enter fullscreen mode Exit fullscreen mode
python --version
Enter fullscreen mode Exit fullscreen mode

Reference

https://brew.sh/

https://scoop.sh/

https://www.pulumi.com/docs/get-started/install/

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay