Existing Package Repositories

Install each of the following packages:

  • git
    • sudo apt update -y
    • sudo apt install git
    • which git
    • git --version
  • curl
    • sudo apt update -y
    • sudo apt install curl
    • which git
    • curl --version
  • vim
    • sudo apt update -y
    • sudo apt install vim
    • which vim
    • vim --version
  • openjdk-11-jdk
    • sudo apt update -y
    • sudo apt install openjdk-11-jdk
    • which java
    • java --version

How to update package repository list?

Solution

CLICK FOR ANSWER
sudo apt update -y

This should be done before installing any new packages.

How to install git?

CLICK FOR ANSWER
sudo apt install git -y

How to install curl?

CLICK FOR ANSWER
sudo apt install curl -y

How to install vim?

CLICK FOR ANSWER
sudo apt install vim -y

How to install openjdk-11-jdk?

CLICK FOR ANSWER
sudo apt install openjdk-11-jdk