我如何告诉 ubuntu 仅安装要求的并且不要带来其他会破坏整个系统的依赖项?

我如何告诉 ubuntu 仅安装要求的并且不要带来其他会破坏整个系统的依赖项?

我怎样才能只安装python-webkit而不安装其他软件包?哪个显示要安装?(没有 gstreamer*.*,由于 GPL 许可证,我不想在我的发行版中安装任何单个文件,这会大大减慢我的机器速度)

$ sudo apt-get install libwebkitgtk-1.0-0 python-webkit
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libgstreamer-plugins-base0.10-0 libgstreamer0.10-0
Suggested packages:
  gstreamer-codec-install gnome-codec-install gstreamer0.10-tools gstreamer0.10-plugins-base
The following NEW packages will be installed:
  libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 libwebkitgtk-1.0-0
0 upgraded, 3 newly installed, 0 to remove and 333 not upgraded.
Need to get 8,231 kB of archives.
After this operation, 28.2 MB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.

答案1

使用sudo apt-get --no-install-recommends install pkg1 pkg2 ....

要禁用默认安装推荐,请参阅: 我如何设置 aptitude-curses 以使其不自动选择*推荐*的软件包? (也适用于 apt-get)

相关内容