0 Votes

Samba Version (for Linux)
Log In or Register to download the BES file, and more.


* Results in a "string"/number
Show indented relevance
if (exists file "/bin/rpm") then ((version of it) of packages whose (name of it = "samba") of rpm) else if (exists file "/usr/bin/dpkg") then if (exists packages whose ((currently installed of it = true) and (name of it = "samba") and (((version of it) as string) contains ":")) of debianpackage) then (following text of first ":" of ((version of it) as string)) of packages whose ((currently installed of it = true) and (name of it = "samba")) of debianpackage else ((version of it) as string) of packages whose ((currently installed of it = true) and (name of it = "samba")) of debianpackage else ""

Property Details

TitleSamba Version (for Linux)
KeywordsSamba, Application Version, Linux
DescriptionReturns the version of Samba installed on a Linux machine. Tested with RHEL, Debian, & their descendants. Gets rid of the "#:" in Ubuntu packages for easier comparison.
Added by
Last Modified by on 4/12/2016 12:15:06 PM
Counters 3 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.


Relevance Image Sharing:

<a href='/cdb/relevance/3007554'><img src='/cdb/relevanceimage/3007554?width=400' border='0'></a>
Social Media:


Log In or Register to leave comments!
jgstew -
I'm referring to the relevance in my analysis, not in my comment.
jgstew -
The check for `currently installed` is only done for deb packages automatically with my relevance. Basically it only checks if it is `currently installed` if the inspector `currently installed` exists.
ctangora -
The only issue (maybe) with the ideal relevance is that "currently installed" is only relevant to the debian packages. What could be added to mark that as optional for only debian? Regardless, I love your new code. I was thinking of how to do it and put it on the backburner for another time. But looking at what you did I am excited to give it a try!
jgstew -
If the relevance inspectors worked the way they should, then this would work: ( (following text of first ":" of it | it) of (it as string) of versions of packages whose("samba" = name of it AND currently installed of it) of (debianpackages;rpms) )
jgstew -
I came up with a different way to do this: /analysis/details/2995915