Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beanshell commands are not available #4136

Closed
HemanthJabalpuri opened this issue Aug 1, 2019 · 5 comments
Closed

Beanshell commands are not available #4136

HemanthJabalpuri opened this issue Aug 1, 2019 · 5 comments
Labels
bug report Something is not working properly

Comments

@HemanthJabalpuri
Copy link

HemanthJabalpuri commented Aug 1, 2019

@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 (pat@pat.net)
bsh % print("hi");
// Error: EvalError: Command not found: print( java.lang.String ) : at Line: 1 : in file: <unknown file> : print ( "hi" )

bsh %
@ghost ghost added the bug report Something is not working properly label Aug 1, 2019
@ghost ghost self-assigned this Aug 1, 2019
@HemanthJabalpuri
Copy link
Author

@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...?

@ghost
Copy link

ghost commented Aug 3, 2019

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

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

@HemanthJabalpuri
Copy link
Author

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

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

@ghost
Copy link

ghost commented Aug 3, 2019

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
..............

@HemanthJabalpuri
Copy link
Author

HemanthJabalpuri commented Aug 29, 2019

@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

@ghost ghost closed this as completed in 609b3fe Sep 22, 2019
ghost pushed a commit that referenced this issue Sep 22, 2019
amuramatsu pushed a commit to amuramatsu/termux-packages that referenced this issue Dec 7, 2019
@ghost ghost deleted a comment from avci21 Sep 13, 2021
@ghost ghost deleted a comment from avci21 Sep 13, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Sep 13, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug report Something is not working properly
Projects
None yet
Development

No branches or pull requests

1 participant