Termux-packages: Beanshell commands are not available

Created on 1 Aug 2019  路  5Comments  路  Source: termux/termux-packages

@fornwall
Beanshell jar file may be not correctly dexed.
I have dexed bsh.jar from official one and it worked.

$ bsh
BeanShell 2.0b6 - by Pat Niemeyer ([email protected])
bsh % print("hi");
// Error: EvalError: Command not found: print( java.lang.String ) : at Line: 1 : in file: <unknown file> : print ( "hi" )

bsh %
bug report

Most helpful comment

But how we can know the automatic refers to which pkg....

Listing all automatic packages:

$ apt list | grep automatic

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

attr/stable,now 2.4.48-1 aarch64 [installed,automatic]
capstone/stable,now 4.0.1-3 aarch64 [installed,automatic]
glib/stable,now 2.60.6-1 aarch64 [installed,automatic]
libandroid-shmem/stable,now 0.2.1 aarch64 [installed,automatic]
libcap/stable,now 2.27-1 aarch64 [installed,automatic]
libffi/stable,now 3.2.1-4 aarch64 [installed,automatic]
libgnutls/stable,now 3.6.9-1 aarch64 [installed,automatic]
libidn2/stable,now 2.2.0-1 aarch64 [installed,automatic]
liblzo/stable,now 2.10-1 aarch64 [installed,automatic]
libnettle/stable,now 3.5.1-2 aarch64 [installed,automatic]
libnfs/stable,now 4.0.0-2 aarch64 [installed,automatic]
libpixman/stable,now 0.38.4-2 aarch64 [installed,automatic]
libssh2/stable,now 1.9.0-1 aarch64 [installed,automatic]
libunistring/stable,now 0.9.10-3 aarch64 [installed,automatic]
libxml2/stable,now 2.9.9-6 aarch64 [installed,automatic]
qemu-common/unstable,now 4.0.0-3 aarch64 [installed,automatic]

Checking specific packages - variant 1:

$ apt list | grep libxml2

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libxml2/stable,now 2.9.9-6 aarch64 [installed,automatic]
libxml2-static/stable 2.9.9-6 aarch64
libxml2-utils/stable 2.9.9-6 aarch64

Checking specific packages - variant 2:

$ apt show libxml2 2>/dev/null | grep APT-Manual-Installed
APT-Manual-Installed: no

how we can know pkgs that depends on specific package...

Use apt rdepends (or apt-cache rdepends). Example for libxml2:

$ apt rdepends libxml2
libxml2
Reverse Depends:
  Depends: libxml2-static (= 2.9.9-6)
  Depends: qemu-utils
  Depends: qemu-system-x86_64-headless
  Depends: qemu-system-riscv64-headless
  Depends: qemu-system-riscv32-headless
  Depends: qemu-system-i386-headless
  Depends: qemu-system-arm-headless
  Depends: qemu-system-aarch64-headless
  Depends: metasploit
  Depends: lastpass-cli
  Depends: clamav
  Depends: openbabel
..............

All 5 comments

@xeffyr
I have a small question that is not about above issue...

If I installed X pkg and it automatically installs pkg Y, then how can I know pkg Y is automatically installed from which pkg through command...?

how can I know pkg Y is automatically installed from which pkg through command...?

apt list will show these packages as [installed,automatic].

@xeffyr
But how we can know the automatic refers to which pkg....

i.e., how we can know pkgs that depends on specific package...

But how we can know the automatic refers to which pkg....

Listing all automatic packages:

$ apt list | grep automatic

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

attr/stable,now 2.4.48-1 aarch64 [installed,automatic]
capstone/stable,now 4.0.1-3 aarch64 [installed,automatic]
glib/stable,now 2.60.6-1 aarch64 [installed,automatic]
libandroid-shmem/stable,now 0.2.1 aarch64 [installed,automatic]
libcap/stable,now 2.27-1 aarch64 [installed,automatic]
libffi/stable,now 3.2.1-4 aarch64 [installed,automatic]
libgnutls/stable,now 3.6.9-1 aarch64 [installed,automatic]
libidn2/stable,now 2.2.0-1 aarch64 [installed,automatic]
liblzo/stable,now 2.10-1 aarch64 [installed,automatic]
libnettle/stable,now 3.5.1-2 aarch64 [installed,automatic]
libnfs/stable,now 4.0.0-2 aarch64 [installed,automatic]
libpixman/stable,now 0.38.4-2 aarch64 [installed,automatic]
libssh2/stable,now 1.9.0-1 aarch64 [installed,automatic]
libunistring/stable,now 0.9.10-3 aarch64 [installed,automatic]
libxml2/stable,now 2.9.9-6 aarch64 [installed,automatic]
qemu-common/unstable,now 4.0.0-3 aarch64 [installed,automatic]

Checking specific packages - variant 1:

$ apt list | grep libxml2

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libxml2/stable,now 2.9.9-6 aarch64 [installed,automatic]
libxml2-static/stable 2.9.9-6 aarch64
libxml2-utils/stable 2.9.9-6 aarch64

Checking specific packages - variant 2:

$ apt show libxml2 2>/dev/null | grep APT-Manual-Installed
APT-Manual-Installed: no

how we can know pkgs that depends on specific package...

Use apt rdepends (or apt-cache rdepends). Example for libxml2:

$ apt rdepends libxml2
libxml2
Reverse Depends:
  Depends: libxml2-static (= 2.9.9-6)
  Depends: qemu-utils
  Depends: qemu-system-x86_64-headless
  Depends: qemu-system-riscv64-headless
  Depends: qemu-system-riscv32-headless
  Depends: qemu-system-i386-headless
  Depends: qemu-system-arm-headless
  Depends: qemu-system-aarch64-headless
  Depends: metasploit
  Depends: lastpass-cli
  Depends: clamav
  Depends: openbabel
..............

@xeffyr
Can you please dex this jar. In my mobile I am getting out of memory error.

https://repo1.maven.org/maven2/org/python/jython-standalone/2.5.3/jython-standalone-2.5.3.jar

dx --dex --no-strict --min-sdk-version=1 --output="jython-2.5.3-dexed.jar" jython-standalone-2.5.3.jar

Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

loveablefellow007 picture loveablefellow007  路  3Comments

Cyb3rD3m0n picture Cyb3rD3m0n  路  3Comments

jackbrycesmith picture jackbrycesmith  路  3Comments

bkdwt picture bkdwt  路  3Comments

divyakutty picture divyakutty  路  3Comments