ubuntu-minimal 中的 coreutils 在哪里?

oad*_*ams 7 package-management

我想安装 ubuntu-minimal。我无法将 coreutils 视为依赖项,尽管 ubuntu-minimal 仍然依赖于许多其他软件包。我必须单独安装它还是依赖于 ubuntu-minimal 中的其他软件包之一?如果有,是哪一个?

Gil*_*il' 7

coreutils标记Essential: yes,所以它总是包含在安装,dpkg如果你尝试删除它会警告你,在一个相当不可忽视的方式。包不必声明对基本包的依赖关系,除非它们需要特定版本(例如,dpkg(另一个基本包)依赖coreutils (>= 5.93-1)于 Ubuntu 10.04)。

  • @alphomega: `dpkg-query -f '${package}: ${essential}\n' --show | sed -ne 's/: yes$//p'` 或 `aptitude search '?essential'` (2认同)

Oli*_*Oli 7

它是内核和 dpkg 的依赖项,所以我很确定它会在 ubuntu-minimal 上。

要查看基本包,请运行以下命令:

aptitude search '~E'
Run Code Online (Sandbox Code Playgroud)

你会看到这样的东西:

i A apt - Advanced front-end for dpkg    
i  base-files - Debian base system miscellaneous files
i  base-passwd - Debian base system master password and group files
i  bash - The GNU Bourne Again SHell
i  bsdutils - Basic utilities from 4.4BSD-Lite
i  coreutils - GNU core utilities
i  dash - POSIX-compliant shell
i  debianutils - Miscellaneous utilities specific to Debian
i A diffutils - File comparison utilities
i  dpkg - Debian package management system
i  e2fsprogs - ext2/ext3/ext4 file system utilities
i  findutils - utilities for finding files--find, xargs
i  grep - GNU grep, egrep and fgrep
i  gzip - GNU compression utilities
i  hostname - utility to set/show the host name or domain name
i  login - system login tools
i  mount - Tools for mounting and manipulating filesystems
i  ncurses-base - basic terminal type definitions
i  ncurses-bin - terminal-related programs and man pages
i  perl-base - minimal Perl system
i  python-minimal - minimal subset of the Python language (default version)
i  sed - The GNU sed stream editor
i  tar - GNU version of the tar archiving utility
i  util-linux - Miscellaneous system utilities
Run Code Online (Sandbox Code Playgroud)