Termux – Get Full Root Access with Termux FakeRoot

What is Termux?

Termux is a terminal emulator for Android. It also provides a minimal Linux environment. The best thing is, to use Termux on Android, no rooting or additional setup is required.

What is FakeRoot?

Termux has a plethora of additional packages to extend its functionality. Fake Root is one of them. This package allows you to run scripts that require root access without actually having a rooted device. As the name “FakeRoot ” suggests, it fakes root access, which makes this a highly useful package for anyone wanting to experiment with the terminal emulator.

Installing FakeRoot package on Termux

Installation is as easy as executing two commands. Your device needs to be connected to wifi or has an active data connection. Open the Termux emulator and run the below two commands.

  • The first step is to update the packages: pkg update && pkg upgrade
  • Secondly, install the FakeRoot package: pkg install fakeroot

Running FakeRoot package within Termux

Now that you have installed FakeRoot, the next step would be to use it within the Termux emulator. This is equally easy as the above step and involves just one command.

  • Open Termux and type in: fakeroot

You will notice the usual $ sign of Termux turn into a # sign. That means FakeRoot has been fired up and is now waiting for your commands.

Congratulations! Now you have a functional Linux environment on Android with the ability to execute root scripts on a non-root device.

If you run into any issues during the installation of Termux or FakeRoot, let me know in the comments section below. I will be happy to help!

Also read:   Google presents the new Wear OS in collaboration with Samsung

3 thoughts on “Termux – Get Full Root Access with Termux FakeRoot”

  1. Hello, I’m new to termux and well everything really. I’m excited to learn well everything! Thank you for your help with the fakeroot.i would love any advice or suggestions as to what to learn first. Warmest regards.
    Oh, a gift for you. I have no idea what song of music you enjoy but you may need this in your life. It is Bulgarian Trap. (Dub with serious bass😬🤙)

    Reply
  2. I followed all of the steps above and when I try to fire up fakeroot this is what I get “libfakeroot: FAKEROOTKEY not defined in environment”

    Reply

Leave a Comment