Retrieving Packages with Session Relevance

(imported comment written by SarahGalvan)

Perhaps I can do this through checking file existence. For example, if /etc/apt exists or something similar for rpms. Maybe the rpm binary.

(imported comment written by SarahGalvan)

Are you sure there is no way of getting a list of inspectors?

Is there a list of OSes supported by these inspectors? I can’t just look at what’s on my network as that isn’t the target. It will end up on several networks of unknown OSes. Hence trying to avoid listing OSes, if there is not actually a list of them.

Thank you.

(imported comment written by SarahGalvan)

Is this in the spirit of what you were recommending?

if not (name of operating system as lowercase starts with 
"linux") then 
"<unsupported>" 

else 

if (operating system as lowercase contains 
"Debian" or operating system as lowercase contains 
"Ubuntu") then unique values of (name of it & 
"|" & (

if (exists version of it) then (version of it as string) 

else (
"No version info"))) of packages of debianpackages 

else 

if (exists rpm) then unique values of (name of it & 
"|" & version of it as string) of packages of rpm 

else 
"<unsupported>"