首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何删除您不知道其正确名称的包?

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

Ask Ubuntu用户
提问于 2016-01-09 04:18:13
回答 4查看 2.9K关注 0票数 5

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

EN

回答 4

Ask Ubuntu用户

回答已采纳

发布于 2016-01-09 04:29:29

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

代码语言:javascript
运行
复制
   dpkg-deb actions
          See  dpkg-deb(1)  for  more  information  about  the   following
          actions.
          .
          .
          .
          -I, --info archive [control-file...]
              Show information about a package.

例如:

代码语言:javascript
运行
复制
$ 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.

因此,在本例中,包名为arc-theme-solid

票数 6
EN

Ask Ubuntu用户

发布于 2016-01-09 04:56:21

使用(GUI方法)

  1. 安装突触包管理器sudo apt-get update sudo apt-get upgrade sudo apt-get install synaptic
  2. 打开突触包管理器并选择“状态”选项。
  1. 选择“安装(本地或过时)”。
  1. 选择要删除的包。右键单击->移除包。
  1. 点击“应用”。
票数 4
EN

Ask Ubuntu用户

发布于 2016-01-09 04:31:11

要卸载的包的名称是否与.deb文件的名称相同?

不一定。包文件可以称为install-me.deb,包本身可以是foo-bar

然而,arc-theme-solid_1450051815.946cbf5_all.deb看起来像一个正常的名称。通常,对于包,.deb文件应该命名为<package-name>_<version>_<architecture>.deb。对于您安装的包,则:

  • 名称:arc-theme-solid
  • 版本:1450051815.946cbf5
  • 体系结构:all

要验证,如果您仍然拥有.deb文件,则可以在其上使用dpkg-deb

代码语言:javascript
运行
复制
dpkg-deb --field arc-theme-solid_1450051815.946cbf5_all.deb

例如:

代码语言:javascript
运行
复制
$ dpkg-deb --field fonts-noto_2015-09-29-1_all.deb
Package: fonts-noto
Version: 2015-09-29-1
Architecture: all
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian Fonts Task Force <pkg-fonts-devel@lists.alioth.debian.org>
Installed-Size: 22
Depends: fonts-noto-hinted
Recommends: fonts-noto-unhinted, fonts-noto-cjk
Section: fonts
...
票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/718918

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档