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:   The Galaxy S22 Ultra may not improve in the photography department

By George Adams

Blogging and running are my two favorite things.