Linux

How to Install and Uninstall Yarn on a Linux Ubuntu System

yarn feature Image

Yarn is the acronym for Yet Another Resource Neggotiator. It is Hadoop stack’s coordinating element . It schedules the execution of jobs and coordinates and manages the underlying resources. This article is focused on how to help you install Yarn on Ubuntu 22.04. Other useful materials:How to install WireShark on a Linux Ubuntu System and How to Install PlayonLinux on a Linux System and How to install Windows Server 2022 on VirtualBox and How to install Redis on a Linux System and How to install Unison on a Linux System andHow To Install Nextcloud on a Linux system . The steps to install Yarn are as follows

Step1: Update System Repos

Use the command below to update system repositories

apt update 
aptr
package index

Step2: Install Curl if you do not already have it

We shall be needing curl for the next step so it’s import to install it and we can do so with the command:

sudo apt install curl
apt-curl
curl installed

Step 3: Import Yarn GPG Keys

Run the following command to import the Yarn GPG key to Ubuntu system repositories:

curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -

Step 4: enable yarn Repo

Run the following command to enable the Yarn repository on Ubuntu 22.04 system:

echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
enable
enable yarn repo

Step5: install Yarn

Run the following command to install Yarn :

sudo apt install yarn
aiy

Step 6: Verify your Installation

Run the following command to check if yarn is really installed and also check the installed version on your Ubuntu 22.04 system using the command:

yarn --version
YARN-V
yarn version

As we can see we have successfully installed yarn on our ubuntu machine. Be on the lookout for future articles and updates and how to practically use hadoop for data processing.

How to Uninstall Yarn

If you do not want yarn anymore on your machine, run the command below to remove it

 sudo apt remove--autoremove yarn
autore
remove yarn

Summary

You are probably here because you are seeking alternative ways of installing yarn other than NPM. The steps listed above can help you get up and running with Yarn on your linux server. Thank you for reading.

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x