阅读未安装程序帮助的最快方法(我很幸运)

阅读未安装程序帮助的最快方法(我很幸运)

查找当前未安装的程序的信息的最快方法是什么?

今天我需要 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

还有dman来自自行车棚包裹。

sudo apt-get install bikeshed

它可以让您从互联网上阅读手册页,而无需安装相应的软件包:

dman remind

答案2

  1. 阅读在线的手册页。

  2. 使用apt-cache

    apt-cache show remind
    

    或者

    apt-cache show remind | awk '/Description-en/ {print; a=1; next} a && /^ / {print; next} {a=0}'
    
  3. 其余所有内容均包含在包裹本身中。

    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".

相关内容