Install Android Studio on Red Hat Enterprise Linux
Last Updated :
27 May, 2024
Android Studio is the official Integrated Development Environment (IDE) for building Android apps. It provides a comprehensive set of tools to ease the development process. In this article we will discuss two methods to install Android Studio on a Red Hat Enterprise Linux (RHEL) system.
Install Android Studio on Red Hat Enterprise Linux
Method 1: Using the official source package
Step 1: Install dependencies
In order to install Android Studio from the Tarball package, we will need to download the required dependencies using the yum install command as follows :
sudo yum install glibc.i686 glibc-devel.i686 libstdc++.i686 ncurses-devel.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686
installing dependenciesStep 2 : Download Android Studio
Download android studio archive from official source. Go to official android studio page and download it from there.
downloading android studioOnce download is complete, we will extract archive using tar -zxvf command. First navigate to Download directory using cd command, and later we will use tar -zxvf command to extract archive.
cd Downloads/
sudo tar -zxvf android-studio-*-linux.tar.gz
extracting android studioStep 4 : Moving files to proper installation directory.
Once extraction is complete, we can move android studio directory to /opt directory to use it as a program. We will use mv command for that.
sudo mv android-studio /opt/
now we will link android studio execution as follows
sudo ln -sf /opt/android-studio/bin/studio.sh /usr/local/bin/android-studio
moving android studio to opt Step 5 : Creating desktop entry.
Now, final step. We will create desktop entry for android studio icon for ease of use using gedit.
sudo gedit /usr/share/appications/android-studio.desktop
After this command new text editor window will open. Paste following in it and save and exit.
creating desktop entry using geditStep 6 : Launch android studio.
Now, we can launch android studio from application menu by simply clicking on android studio icon.
android studio launchingMethod 2 : Using flatpak
Step 1 : Setup flatpak and flathub
First we will need to install flatpak in our system if it is not already installed using yum install command.
sudo yum install flatpak
Once flatpak is installed. We can now add flathub repo to our system using flatpak remote-add command as follows.
sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
setting up flathub repoStep 2 : Install Android Studio
Once flatpak and flathub is setup, we can install Android Studio using flatpak instsall command as follows.
flatpak install flathub com.google.AndroidStudio
installing android studio using flathubStep 3 : Launching Android Studio
Once installation is finished, we can launch android studio from application menu by simply clicking on android studio icon.
launching android studioConclusion
In this article, we've explored two methods for installing Android Studio on REHL. For most users, using the flatpak and flathub is the recommended approach. This method offers a straightforward installation, ensures compatibility with your system, and provides regular updates. However, if you require a specific version or prefer more customization, first method alternative option.
Similar Reads
Install remmina on Red Hat Enterprise Linux (RHEL 9)
Remmina is a popular open-source remote desktop client for Linux that allows users to connect to remote servers and desktops. In this article, we will guide you through the process of installing Remmina on Red Hat Enterprise Linux (RHEL), suitable for beginners. Step 1: Enable EPEL RepositoryRemmina
5 min read
How to Install MongoDB Enterprise in Linux
MongoDB is a free, open-source, cross-platform, document-oriented database. The MongoDB Enterprise Edition is a commercial version of MongoDB used for enterprise-scale operations. In this guide, we will learn how to install MongoDB Enterprise edition on a Linux System(Debian). We have provided a det
2 min read
Red Hat Enterprise Linux Operating System
Linux remains one of the most significant innovations in technology which can be used by every person, company, and business around the world. Out of all varieties of Linux distribution Red Hat Enterprise Linux (RHEL) has famously emerged as a tough commercial Linux with extensive support, and secur
10 min read
How to install Git on Redhat Linux 9?
Git is a widely adopted version control system that enables developers to efficiently track changes in their codebase. Installing Git on Red Hat Linux 9 is a crucial first step for any developer looking to manage projects, collaborate with teams, and control version history seamlessly. Here, weâll w
4 min read
How to Install ruby bundler on Linux?
Bundler ensures that Ruby projects have a consistent environment by monitoring and installing the precise gems and versions required. Bundler helps you get out of dependency hell by ensuring that the gems you require are in development, staging, and production. Bundle install is all it takes to get
1 min read
How to Install Visual Studio Code in Red Hat Linux
In this post, we will see How to Install Visual Studio Code in Red Hat Linux. Visual Studio Code (VSCode) is an important, open-source law editor that has gained immense fashionability among inventors for its inflexibility, expansive extension library, and integrated development terrain( IDE) featur
5 min read
How To Install Qt Creator On Linux?
Qt Creator is a cross-platform C++, JavaScript, and QML integrated environment that simplifies GUI application development. It is currently available for Windows, macOS, and Linux. It is part of the SDK for the Qt GUI application development framework and uses the Qt API, which encapsulates host OS
2 min read
How to Install Docker on Amazon Linux
Docker is a tool which helps to automate the deployment of applications in containers to make sure that particular applications can work efficiently in different environments without any errors.It helps developers to build, ship, and run application faster and more reliable way. In this article, we
3 min read
How to install Gparted partition editor on Linux
some tools areOn Linux systems, managing disk partitions can be challenging, especially for new users. Fortunately, some tools are easy to use which can make this procedure simpler. GParted, is a user-friendly partition editor that enables users to manage their disk partitions. In this article, we w
3 min read
Installation and Configuration of Yum in Red Hat Linux 8
Yellowdog Updater Modifier sums as YUM and this is a PMT (Package Management Tool) for the RedHat Package Manager. YUM has been used for quite a long time. But, now in RHEL 8, we have a modest version of "yum" called "dnf" stands for Dandified YUM. Although both the commands work fine in Redhat 8 Li
4 min read