ubuntu 查看 wayland-server wayland-client 是否安装成功,并查看版本
时间: 2024-01-09 15:04:22 浏览: 38
可以通过以下命令检查wayland-server和wayland-client是否已经安装成功:
```
dpkg -l | grep wayland
```
如果已经安装成功,会输出如下信息:
```
ii libwayland-client0:amd64 1.18.0-1~ubuntu20.04.1 amd64 wayland compositor infrastructure - client library
ii libwayland-cursor0:amd64 1.18.0-1~ubuntu20.04.1 amd64 wayland compositor infrastructure - cursor library
ii libwayland-egl1:amd64 1.18.0-1~ubuntu20.04.1 amd64 wayland compositor infrastructure - EGL library
ii libwayland-server0:amd64 1.18.0-1~ubuntu20.04.1 amd64 wayland compositor infrastructure - server library
ii wayland-protocols 1.20-1 all additional Wayland protocols
```
如果没有安装成功,则没有输出信息。
要查看wayland-server和wayland-client的版本号,可以运行以下命令:
```
pkg-config --modversion wayland-server
pkg-config --modversion wayland-client
```
这会输出wayland-server和wayland-client的版本号。