查找当前未安装的程序的信息的最快方法是什么?
今天我需要 Ubuntu 提醒我一些事件,我想 Ubuntu 可以像 Google 的I'm Feeling Lucky
按钮一样智能。但不幸的是,这没有奏效:
$ remind
The program 'remind' is currently not installed. You can install it by typing:
sudo apt-get install remind
$ man remind
No manual entry for remind
$ help remind
bash: help: no help topics match `remind'. Try `help help' or `man -k remind'
or `info remind'.
在安装之前我希望检查一下提醒是否真的是我所需要的。
当然info remind
没有帮助(根本不需要展示)。man -k
工具也没有帮助:
$ man -k remind
calendar (1) - reminder service
并且挖掘它的含义man -k
也没有成功:
-k, --apropos equivalent to apropos
那么,如何从命令行找到所需的应用程序?
答案1
答案2
阅读在线的手册页。
使用
apt-cache
apt-cache show remind
或者
apt-cache show remind | awk '/Description-en/ {print; a=1; next} a && /^ / {print; next} {a=0}'
其余所有内容均包含在包裹本身中。
apt-get download remind dpkg -x *.deb remind man ./remind/usr/share/man/man1/rem.1.gz
示例输出
apt-cache show remind
Package: remind
Priority: optional
Section: universe/utils
Installed-Size: 411
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Ana Beatriz Guerrero Lopez <[email protected]>
Architecture: i386
Version: 03.01.15-1
Depends: libc6 (>= 2.7)
Suggests: tkremind, wyrd
Filename: pool/universe/r/remind/remind_03.01.15-1_i386.deb
Size: 190964
MD5sum: e476e0b4e49a211ad860cde57b1b6ea5
SHA1: b342c7f05e560aecc3c7bac9aa1ae1fef424121c
SHA256: 67f34f03723e03653fc25d119b680da1ab03bf28fc78d80c2a173184cbf682bc
Description-en: sophisticated calendar and alarm program
Remind allows you to remind yourself of upcoming events and
appointments. Each reminder or alarm can consist of a message sent
to standard output, or a program to be executed.
.
It also features: sophisticated date calculation, moon phases,
sunrise/sunset, Hebrew calendar, alarms, PostScript output, tcl/tk
front-end and proper handling of holidays.
.
Reminders can be created by the remind scripting language or by using
the graphical frontend package "tkremind".
Description-md5: 5b163d21d42fbc03e201fdb61071c10d
Homepage: http://www.roaringpenguin.com/products/remind/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
apt-cache show remind | awk '/Description-en/ {print; a=1; next} a && /^ / {print; next} {a=0}'
Description-en: sophisticated calendar and alarm program
Remind allows you to remind yourself of upcoming events and
appointments. Each reminder or alarm can consist of a message sent
to standard output, or a program to be executed.
.
It also features: sophisticated date calculation, moon phases,
sunrise/sunset, Hebrew calendar, alarms, PostScript output, tcl/tk
front-end and proper handling of holidays.
.
Reminders can be created by the remind scripting language or by using
the graphical frontend package "tkremind".