In this tutorial, you will learn how to install and uninstall Netbeans on ubuntu 18.04|20.04|22.04 using terminal or command line.
How to Install Netbeans In Ubuntu 18.04|20.04|22.04
Steps to install and uninstall Netbeans in ubuntu 18.04|20.04|22.04 using terminal or command prompt
Step 1 – Open Terminal OR Command Prompt
First of all, your terminal or command prompt by pressing Ctrl+Alt+T key:
Step 2 – Update Ubuntu Apache Package
In this step, visit your terminal and execute the following command to update Apt package list:
sudo apt update
Step 3 – Install Java
In this step, execute the following command on your terminal to install java openJK:
sudo apt install openjdk-8-jdk
Verify the installation by typing the following command on your terminal, which will print the Java version:
java -version
Step 4 – Install Netbeans ubuntu 18.04|20.04|22.04
In this step, execute the following command on your terminal to install Netbeans:
sudo snap install netbeans --classic
Once the installation is complete, you will see the following output:
netbeans 11.0 from 'apache-netbeans' installed
Note that, The easiest way to install Netbeans on Ubuntu is by using the snappy packaging system.
Step 5 – Uninstall Netbeans ubuntu 18.04|20.04|22.04
To uninstall NetBeans, you’ll need to use the snap remove
command followed by the package name. The package name can be found in the list of installed Snap packages from the previous step.
sudo snap remove netbeans
Conclusion
That’s it; you have learned how to install and uninstall Netbeans on Ubuntu 18.04|20.04|22.04.
That’s it. Netbeans has been download on your Ubuntu system.