如何卸载以下软件包?

如何卸载以下软件包?

所以我想卸载以下软件包,特别是 libnvidia-compute 440。我该使用什么命令来删除它以及如何确定它的位置?

$ dpkg -l | grep -i nvidia
rc  cuda-nvtx-10-1                             10.1.243-1                                       amd64        NVIDIA Tools Extension
rc  libnvidia-compute-435:amd64                435.21-0ubuntu0.18.04.2                          amd64        NVIDIA libcompute package
ii  libnvidia-compute-440:amd64                440.82-0ubuntu0~0.18.04.2                        amd64        NVIDIA libcompute package

运行 dpks -L 会给出许多路径,我很困惑它到底是哪一条。

$dpkg -L libnvidia-compute-440:amd64
/.
/etc
/etc/OpenCL
/etc/OpenCL/vendors
/etc/OpenCL/vendors/nvidia.icd
/usr
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libcuda.so.440.82
/usr/lib/x86_64-linux-gnu/libnvidia-compiler.so.440.82
/usr/lib/x86_64-linux-gnu/libnvidia-fatbinaryloader.so.440.82
/usr/lib/x86_64-linux-gnu/libnvidia-ml.so.440.82
/usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.440.82
/usr/lib/x86_64-linux-gnu/libnvidia-ptxjitcompiler.so.440.82
/usr/share
/usr/share/doc
/usr/share/doc/libnvidia-compute-440
/usr/share/doc/libnvidia-compute-440/changelog.Debian.gz
/usr/share/doc/libnvidia-compute-440/copyright
/usr/lib/x86_64-linux-gnu/libcuda.so
/usr/lib/x86_64-linux-gnu/libcuda.so.1
/usr/lib/x86_64-linux-gnu/libnvidia-ml.so
/usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1
/usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
/usr/lib/x86_64-linux-gnu/libnvidia-ptxjitcompiler.so
/usr/lib/x86_64-linux-gnu/libnvidia-ptxjitcompiler.so.1

答案1

您可以通过以下方式卸载它

sudo apt purge libnvidia-compute-440

相关内容