christine
christine@
-All-Series:/etc$ sudo lsb_release -a
[sudo] password for christine: No LSB modules are available.Distributor ID: UbuntuDescription: Ubuntu 16.04.1 LTSRelease: 16.04Codename: xenial
-All-Series:/etc$ cd ~u-All-Series:~$ cat /proc/versionLinux version 4.4.0-62-generic (buildd@lcy01-30) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) ) #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017-All-Series:~$ dpkg --get-selections | grep linux-imagelinux-image-4.4.0-31-generic installlinux-image-4.4.0-62-generic installlinux-image-extra-4.4.0-31-generic installlinux-image-extra-4.4.0-62-generic installlinux-image-generic installchristine
dpkg --get-selections | grep linux-image | grep -v deinstallIf the currently installed linux-image package contains the word "server" in it, then you're running Ubuntu server.
For example, the current latest kernel package for Ubuntu 10.10 desktop:
linux-image-2.6.35-22-generic
And server:
linux-image-2.6.35-22-server
For a more generic package that should be the same across different versions of Ubuntu,
linux-image-generic
is the default package for Ubuntu desktop andlinux-image-server
is the default for the server edition.