找出命令来自哪个包[复制]

Modified on: Thu, 14 Jun 2018 04:09:53 +0800
    

这个问题已经有了答案:

    

            
  •             如何找到包裹提供文件?
                                        7个答案
                    跨度>
            
  •     

    

是否有一种通用的方法来找出导致安装命令的软件包?

最佳答案

打开终端并尝试以下命令:

dpkg -S 'command name'

例如:dpkg -S /bin/ls

示例输出:

coreutils: /bin/ls

您还可以获取有关coreutils包的详细状态信息,请输入:

 dpkg -s coreutils

示例输出:

Package: coreutils
Essential: yes
Status: install ok installed
Priority: required
Section: utils
Installed-Size: 9040
Maintainer: Ubuntu Core Developers 
Architecture: i386
Version: 5.97-5.3ubuntu3
Replaces: textutils, shellutils, fileutils, stat, debianutils (<= 2.3.1), dpkg (<< 1.13.2)
Provides: textutils, shellutils, fileutils
Pre-Depends: libacl1 (>= 2.2.11-1), libc6 (>= 2.6-1), libselinux1 (>= 2.0.15)
Conflicts: stat
Description: The GNU core utilities
 This package contains the essential basic system utilities.
 .
 Specifically, this package includes:
 basename cat chgrp chmod chown chroot cksum comm cp csplit cut date dd df dir
 dircolors dirname du echo env expand expr factor false fmt fold groups head
 hostid id install join link ln logname ls md5sum mkdir mkfifo mknod mv nice nl
 nohup od paste pathchk pinky pr printenv printf ptx pwd readlink rm rmdir
 sha1sum seq shred sleep sort split stat stty sum sync tac tail tee test touch
 tr true tsort tty uname unexpand uniq unlink users vdir wc who whoami yes
Original-Maintainer: Michael Stone 
作者:aneeshep

相关问答

添加新评论