Install Appium in Ubuntu

Appium is an open-source tool widely employed for testing applications on various platforms, including Android, iOS, and Windows. This versatile tool accommodates both native and hybrid applications, regardless of whether they are developed natively for Android or iOS platforms. Moreover, Appium extends its support to mobile web application testing, enabling the assessment of mobile versions of websites using popular mobile web browsers such as Chrome and Firefox.

Here is a list of prerequisite which we need to have in our machine before jumping into in installation steps:

  • 1-Install Java and Configure JAVA_HOME Environment Variable

  • 2-Download and Set Up Android Studio with a Virtual Device

  • 3-Install Node.js and npm (Node Package Manager)
    Java installation and setup-
    Let us check if we have java installed in our machine or not to do so hit the below command in your terminal.

If you have java installed in your machine you will have output as shown below with the respective version, I have java 11 as my version same can be seen in the below snapshot.

Now that we have verified that our system has Java let us verify the JAVA_HOME path and for doing this hit the below command.

this ll return you the path for the same below is what I have got after running the command.

Now that you are reading this line that means Java has been installed in your machine.one milestone achieved let us move to the next one.

Download and Set Up Android Studio with a Virtual Device

Method 1: Using android-studio repository

Step 1: Install JDK

If you do not have JDK installed on your system then use the below-given command to install it on Ubuntu 22.04.

While processing you will be asked whether you want to continue or not. Press ‘Y’ to continue the installation procedure.

Step 2: Verify installation

Now validate if the app was successfully installed.

The installation has been verified.

Step 3: Add android-studio repository

Now that JDK has been installed you have to import the android-studio repository by running the command provided below.

Output

Step 4: Update system

Now update your system before you move towards installing the Android Studio.

Output

Step 5: Install the app

After updating the system, you can now easily install the app.

Output

Now you simply have to search for the app in the menu and once you find it, you can click on it to use the app.

Android Studio has been installed.

Method 2: Using Snap

Here we have elaborated how you can use Snap store to install Android Studio.

Step 1: Install Snap

Snap is by default installed on Ubuntu 22.04, however, if it is not installed, use the below-given command.

Step 2: Install JDK

You have to install JDK on your system before installing Android Studio as indicated in the previous method.

Step 3: Install Android Studio

Lastly, use the command provided below to install Android Studio.

The app has been installed.

How to uninstall Android Studio

If you wish to uninstall Android Studio using Snap then follow the command given below:

Output

Android Studio is removed or uninstalled successfully.

3-Install Node.js and npm (Node Package Manager):

Node.js is a versatile JavaScript runtime environment that enables users to rapidly develop network applications for various purposes.

Now that we have successfully installed all the prerequisite let us move to the installation step for Appium.

Appium Installation

Let us type the below command to start with Appium installation in your machine

Once you initiate the command mentioned earlier, it will request your system password for authentication. Please enter the password as prompted, and patiently await the completion of the installation process.

Appium is installed in your system, To verify that the Appium was successfully installed lets check its version.

Cheers !!!!!

The displayed output confirms the successful installation of Appium version 2.0. This indicates that we now have the latest Appium 2.0 version successfully installed.

Did you find this article valuable?

Support Arul Johnson by becoming a sponsor. Any amount is appreciated!