我想知道是否可以在安装之前检查有关软件包的信息,而无需打开网络浏览器在那里查找它。
例如,假设我输入
~$ asdf
然后我看到推荐的软件包:
No command 'asdf' found, did you mean:
Command 'asdfg' from package 'aoeui' (universe)
Command 'sadf' from package 'sysstat' (main)
Command 'sdf' from package 'sdf' (universe)
asdf: command not found
假设我想了解包“sdf”的作用。我可以在终端中找到这些信息,还是必须缓慢地在网上查找?
答案1
在Ubuntu(基于debian)中,您可以运行apt-cache show package
命令来查看有关软件包的所有信息。还可以运行apt-cache showpkg package
,apt-cache policy package
来获取更多信息。
例子:
$ apt-cache show sdf
Package: sdf
Priority: extra
Section: universe/text
Installed-Size: 1415
Maintainer: Colin Watson <[email protected]>
Architecture: all
Version: 2.001+1-3
Depends: perl
Suggests: sdf-doc, perl-doc, htmldoc, texlive-latex-base, ghostscript, sgmltools-lite
Filename: pool/universe/s/sdf/sdf_2.001+1-3_all.deb
Size: 294288
MD5sum: 49f9370b17567bae8a362d83633ffb66
SHA1: 967da4edf9948bb9393db34bd1f8037a840bd335
SHA256: 968769e7c75d1612f4f3c4b26c49532b26f288fd8ee722c2d83ba807620e0df5
Description-en: Simple Document Parser
SDF (Simple Document Format) is a freely available document development
system which generates high quality outputs in a variety of formats
from a single source. The output formats supported include
PostScript(tm), PDF, HTML, plain text, POD, man pages, LaTeX,
MIF, SGML, Windows(tm) help, RTF, MIMS F6 help and MIMS HTX help.
If the idea of specifying documents in a logical manner via a
simple markup language sounds appealing, SDF may be useful to you.
Description-md5: 65eb1315794ec8133dd1a14b0e8db243
Multi-Arch: foreign