Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Ubuntu - Install Yarn Package Manager

The following method has been tested on Ubuntu 18.04 and 16.04.

NodeJS Dependency

Yarn requires NodeJS. If you haven't already installed it, go here.


curl -sS | sudo apt-key add -
echo "deb stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install yarn -y

Prog Exec

The prog-exec command to run the above script is:.

prog-exec "34/1" "c6a9ccef59c818e546fda89456bfe73f3a363f2ee17798411b067b0306f3ad75"


Last updated: 20th July 2020
First published: 16th August 2018