How to find out if the Installed Ubuntu is server or desktop edition
Asked by
Ralemy
Good Morning,
For some reason - please don't ask why :) - I need to check the Ubuntu system my program is running on and only proceed if it is a server edition of Ubuntu.
The commands I know of, like lsb_release and uname, only give the architecture and version of the Ubuntu, but the output is the same for Server and Desktop editions. I even tried checking to see if the ubuntu-desktop package is installed, but since that package can be added manually to the Server editions as well, I could not use its presence as an indicator for the edition not being Server.
Does anyone out there know of a command line that would return the edition of the Ubuntu installed?
Cheers and Thanks,
Rex
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Sam_
- Solved:
- Last query:
- Last reply:
To post a message you must log in.