Termux is not officially supported.
However, Metasploit reportedly does work with Termux.
Refer to the following for more information:
WontFix
not true bro
metasploit 5 works on termux ;)
wget https://raw.githubusercontent.com/gushmazuko/metasploit_in_termux/master/metasploit.sh
mv metasploit.sh $HOME
cd
chmod +x metasploit.sh
./metasploit.sh
---start MetaSploi---
cd
./postgresql_ctl.sh restart
cd metasploit-framework
gem install bundler -v 1.17.1
rm Gemfile.lock
bundle install
./msfconsole
auxilus I tested your script 2 days ago
error: "cloud not find activesupport-4.2.10 in any of the sources"

msfconsole
[!] There was an error parsing Gemfile:
[!] There was an error while loading grpc.gemspec: cannot load such file -- grpc/version
Does it try to require a relative path? That's been removed in Ruby 1.9. Bundler cannot continue.
# from /data/data/com.termux/files/home/metasploit-framework/grpc.gemspec:4
# -------------------------------------------
# $LOAD_PATH.push File.expand_path('../src/ruby/lib', __FILE__)
require 'grpc/version'
#
# -------------------------------------------
. Bundler cannot continue.
# from /data/data/com.termux/files/home/metasploit-framework/Gemfile:4
# -------------------------------------------
# # spec.add_runtime_dependency '
gemspec name: 'metasploit-framework'
#
# -------------------------------------------
Most helpful comment
WontFix