「apt show」のpkgアナログは何ですか?

「apt show」のpkgアナログは何ですか?

pkg info以下に関する完全な情報を表示インストール済みバッグ。まだインストールされていないパッケージに対して同じ出力を取得するにはどうすればよいですか? Ubuntuではapt showこれがすぐに行われます。

到着予定時刻:私が探しているものの例はUbuntuからのものです。

$ apt show sudoku
Package: sudoku
Version: 1.0.5-2build2
Priority: optional
Section: universe/games
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Peter Spiess-Knafl <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 124 kB
Depends: libc6 (>= 2.4), libncurses5 (>= 6), libtinfo5 (>= 6)
Homepage: https://github.com/cinemast/sudoku
Download-Size: 41.9 kB
APT-Sources: http://ru.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
Description: console based sudoku
 This sudoku puzzle generator/solver features:
  * character based (curses) interface;
  * cross-platform (Minix, Unix, Windows) with full source code (ANSI C);
  * generates hints upon request;
  * classification of board difficulty (very easy, easy, medium, hard or
    fiendish);
  * generation of new boards;
  * easy entry of boards published in newspapers, Internet, ...;
  * multiple output formats (text, csv, HTML, PostScript).

ベストアンサー1

pkg rquery [query statements] [package name]コピー用apt showこのフォーラムの投稿との類似点について説明しますapt-cache show。これrquery マンページクエリコマンドの基本を扱います。例は次のとおりです。

pkg rquery %n:\n%o:\n%p:\n%e pkg

パッケージ名(%n)、パッケージソース(%o)、パッケージプレフィックス(%p)、パッケージ説明(%e)を表示します。これらはすべて独自の改行文字(\ n)に分割されます。さまざまなオプションと形式があります。お願いしますマンページより具体的なお問い合わせは。同じ出力を得るには、apt showほぼすべてのオプションを使用する必要がありますが、1つか2つしかありませんが、知っておく必要がある場合は、その項目を照会するだけです。

おすすめ記事