如何删除您不知道正确名称的包?

Roc*_*pta 5 software-center uninstall command-line apt

我已经从http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_15.04/all/下载了 arc-theme-solid_1450051815.946cbf5_all.deb 文件并使用软件中心安装了它,但是当我决定卸载它没有出现在软件中心。我想通过终端删除它,但想不出要卸载的包的正确名称。这是与在软件中心外安装任何软件包相关的普遍问题。另外,要卸载的包的名称是否与 .deb 文件的名称相同?

ste*_*ver 6

您应该能够通过阅读 deb 文件来使用dpkg -Idpkg-deb -I显示有关包的信息。从man dpkg

   dpkg-deb actions
          See  dpkg-deb(1)  for  more  information  about  the   following
          actions.
          .
          .
          .
          -I, --info archive [control-file...]
              Show information about a package.
Run Code Online (Sandbox Code Playgroud)

例如

$ dpkg -I arc-theme-solid_1450051815.946cbf5_all.deb
 new debian package, version 2.0.
 size 286706 bytes: control archive=42665 bytes.
     421 bytes,    12 lines      control              
  147142 bytes,  1477 lines      md5sums              
 Package: arc-theme-solid
 Version: 1450051815.946cbf5
 Architecture: all
 Maintainer: Horst3180 <horst3180@gmx.net>
 Installed-Size: 4307
 Depends: gnome-themes-standard, gtk2-engines-murrine
 Conflicts: arc-theme
 Replaces: arc-theme
 Section: misc
 Priority: optional
 Description: Arc is a theme for GTK 3, GTK 2 and Gnome-Shell.
  It supports GTK 3 and GTK 2 based desktop environments like Gnome, Unity, Budgie, Pantheon, etc.
Run Code Online (Sandbox Code Playgroud)

所以在这种情况下,包名是 arc-theme-solid