如何找到软件包名称以卸载软件包?

MV

我已经使用卸载了VirtualBox,sudo apt-get remove --purge virtualbox-5.2并且操作成功。但是,当运行命令时,apt-cache pkgnames virtualbox它将显示以下结果。

套餐

所以我跑了,sudo apt-get remove virtualbox但它显示了Package 'virtualbox' is not installed, so not removed如何重新打包这些软件包?

如何找到要卸载的软件包的名称?

muru

来自man apt-cache

pkgnames [prefix]
   This command prints the name of each package APT knows. The
   optional argument is a prefix match to filter the name list.
   [...]

   Note that a package which APT knows of is not necessarily available
   to download, installable or installed, e.g. virtual packages are
   also listed in the generated list.

如果要查找已安装的软件包,一种方法是使用apt list

list (work-in-progress)
   list is somewhat similar to dpkg-query --list in that it can
   display a list of packages satisfying certain criteria. It supports
   glob(7) patterns for matching package names as well as options to
   list installed (--installed), upgradeable (--upgradeable) or all
   available (--all-versions) versions.

所以:

apt list --installed 'virtualbox*'

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章