0

I would like to to know what command I can use to check if apache common text library is used on a Linux machine.

Using ldconfig -p | grep org.apache.commons:commons-text gives no results

Yope
  • 43
  • 6
  • 2
    You can't do that with "linux" tools, since apache commons is a java library, and is actually cross-platform. You can use some java-specific tools, see https://stackoverflow.com/questions/4417820/how-to-list-dependencies-of-a-jar , but you'll have to process every jar file that you have on this machine. What are you trying to achieve? Do you know what kind of applications are and where they are deployed on your servers? What application servers are you using, if any? Do you have a source code of your applications to scan their dependencies there? – Andrew Nov 09 '22 at 13:19

1 Answers1

0

locate -b -e -r'^commons-text.*.jar$'

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – LinFelix Jun 29 '23 at 11:08