首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在“`Arch”上使用“`pacman`”时显示包的说明

在“`Arch”上使用“`pacman`”时显示包的说明
EN

Unix & Linux用户
提问于 2021-06-22 14:59:24
回答 1查看 743关注 0票数 0

当在我的pacman机器上使用Arch Linux (实际上是Parabola GNU/Linux-Libre)时,我希望获得关于正在查询的包的附加描述性(免费文本)信息。

虽然pacman -Qi pacman -Si 都为我提供了一个名为Description的字段,但它只包含包的一行摘要。

示例:

代码语言:javascript
复制
$ pacman -Qi gimp

...
Description: GNU Image Manipulation Programm
...

当将其与我的apt (或aptitude)计算机上的Debian Stable (实际上是PureOS 9.0 Amber)进行比较时,我可以使用apt show aptitude show 来获取这个一行摘要,而且还可以使用一个或几个带有自由文本信息的额外段落。

示例:

代码语言:javascript
复制
$ apt show gimp

...
Description: GNU Image Manipulation Program
 GIMP is an advanced picture editor. You can use it to edit, enhance, and
 retouch photos and scans, create drawings, and make your own images.
 It has a large collection of professional-level editing tools and
 filters, similar to the ones you might find in Photoshop. Numerous
 fine-control settings and features like layers, paths, masks, and
 scripting give you total control over your images.
 .
 Many image file formats are supported, including JPEG, Photoshop (.psd),
 and Paint Shop Pro (.psp) files. It can also be used to scan and print
 photos.
 .
 To open files remotely (like over HTTP), install the gvfs-backends
 package.
 .
 To use a MIDI device (like a musical keyboard) as an input controller in GIMP,
 install libasound2 and read the how-to at /usr/share/doc/gimp/README.MIDI

罗塞塔pacman表示pacman -Sipacman -Qiapt showzypper info的单价词,但我忽略了附加的自由文本描述(如果我还不知道程序的话,这显然非常有用)。

是否有pacman-option来启用该功能?还是Arch Linux-或Parabola-repositories中缺少了这些信息?

EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2021-06-22 15:23:15

我不知道(所有的)派生发行版是否都是这样,但是Arch上的包只有这个简短的描述;在Arch Wiki页面中提到了PKGBUILD文件(用于构建包的脚本):

pkgdesc包的描述。建议为80个字符或以下。

尤其是在Arch软件包指南中,参见包装礼仪段落:

为包创建包描述时。同时尽量将描述保持在80个字符或以下。

查看Debian政策,包的扩展描述(通常)不是来自上游,而是由打包器添加。这样的做法似乎不符合Arch的接吻性质。

票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/655318

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档