Bash find version of an installed application but if none is found set variable to App Not Installed
Hello Forum,
I'm issuing a one line bash command to look for the version of an installed application and saving the result to a variable like so:
But if the application is not installed I want to return to my variable that the Application is not installed. So I'm looking for a command something like the following:
Or perhaps a better way to find this would be to look at when the application was installed using:
Where I would again want the result to show either the app installed version and date and if not found return the text "Application is not installed".
What is the correct syntax of this one line command to gather the information I need into my $APP variable?
Your commands won't work; you need at least e.g. "command substitution".
Try
Be aware that not all applications / tools offer a --version option - their result may be misleading.
Hi,
I am looking to get a list of applications and corresponding user who installed the same (owner) on AIX host.
Can anyone confirm how can this information be retrieved? We can use "rpm" to get list of packages available on AIX, but is there a way to get the corresponding user as well for... (2 Replies)
Hi All,
I am trying to list down all the installed application/packages on hp-ux machine in below format :
packagename:<application/package name> ; <application/package version> ; <application/package vendor>
can someone suggest with small script for this.Will swlist command give... (4 Replies)
Hi,
I want to know what version of the java is installed?
Please let me know the command or process to identify the installed java version in sun solaris box.
Thanks in advance for all your support. (3 Replies)
Hey there,
i run 1: on my server (RHEL 6) and getting response that the libodbc is not installed. If i use yum for installation, it tells me, there is no package like this ( 2: ). Since in the description of Definiens is mentioned that the Run-time dependency is unixODBC (libodbc.so.1), I assume... (2 Replies)
Hello,
I have installed my system AIX5.3 through NIM.
The manual doesn't work. Do you have any idea ?
Below my confid. There a specific fileset missing ?
Thanks in advance for your help
# man ls
Manual entry for ls not found or not installed.
# lslpp -l bos.rte.man
Fileset ... (0 Replies)
Hi,
I wanted to know how can I get the version of underlying HP-OS installed on a HPUX workstation. The output required is "June 2001" version or "March 2003" version etc whatever OS is present.
Thanx in advance for your help.
Regards,
Pankaj (3 Replies)
Hi, how could I find whether an application is installed by root or non-root
I am assuming it would be logged in a file, if it is where would it be?
Thanks in advance. (2 Replies)