GNU/Linux >> Linux の 問題 >  >> Debian

Debian –インストールせずにパッケージバージョンを確認する方法は?

インストールする前に、パッケージのバージョンを確認したい。どうすればこれを行うことができますか?

承認された回答:

システムで認識されているパッケージ/オフライン

apt-cacheを使用できます APTキャッシュを照会します。システムで認識されているバージョンを表示するには、apt-cache policyを使用します 。例:

apt-cache policy iceweasel  
iceweasel:                        
  Installed: 10.0.4esr-3
  Candidate: 10.0.4esr-3
  Version table:
     12.0-7 0
          1 http://ftp.us.debian.org/debian/ experimental/main amd64 Packages
 *** 10.0.4esr-3 0
        500 http://ftp.us.debian.org/debian/ sid/main amd64 Packages
        100 /var/lib/dpkg/status
     10.0.4esr-2 0
        500 http://ftp.us.debian.org/debian/ testing/main amd64 Packages

これは、iceweaselバージョン 12.0-7を意味します 実験的に利用可能で、優先度1、バージョン 10.0.4esr-3 sidからインストールされ、優先度500および 10.0.4esr-2 テスト中です。

優先順位の意味の詳細については、apt_preferences(5)

を参照してください。

パッケージに関する簡単な説明といくつかのメタ情報を

で表示することもできます。
apt-cache show package-name

すべてのDebianパッケージに関する情報/オンライン

利用可能なすべてのDebianパッケージに関するバージョン情報(基本的にはhttp://packages.debian.orgが行うこと)を取得したい場合は、rmadison(1)を使用してデータベースにリモートでクエリを実行できます。 rmadisonはdevscriptsパッケージに含まれており、apt-get install devscriptsを介してインストールする必要があります。 。

$ rmadison iceweasel
 iceweasel | 3.0.6-3             | lenny-security    | source, alpha, amd64, arm, armel, hppa, i386, ia64, mips, mipsel, powerpc, s390, sparc
 iceweasel | 3.0.6-3             | lenny             | source, alpha, amd64, arm, armel, hppa, i386, ia64, mips, mipsel, powerpc, s390, sparc
 iceweasel | 3.5.16-11~bpo50+1   | backports/lenny   | source, alpha, amd64, armel, i386, ia64, mips, mipsel, powerpc, s390, sparc
 iceweasel | 3.5.16-14           | squeeze           | source, amd64, armel, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, s390, sparc
 iceweasel | 3.5.16-15           | squeeze-p-u       | source, amd64, armel, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, s390, sparc
 iceweasel | 3.5.16-15           | squeeze-security  | source, amd64, armel, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, s390, sparc
 iceweasel | 10.0.4esr-2~bpo60+1 | squeeze-backports | source, amd64, i386, kfreebsd-amd64, kfreebsd-i386, s390
 iceweasel | 10.0.4esr-2         | wheezy            | source, amd64, armel, armhf, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, s390, s390x, sparc
 iceweasel | 10.0.4esr-3         | sid               | source, amd64, armel, armhf, hurd-i386, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, s390, s390x, sparc
 iceweasel | 11.0-4              | experimental      | source, armel
 iceweasel | 12.0-3              | experimental      | source, mips
 iceweasel | 12.0-7              | experimental      | source, amd64, armhf, hurd-i386, i386, ia64, kfreebsd-amd64, kfreebsd-i386, powerpc, s390, s390x, sparc

apt-cacheとrmadisonの違い rmadisonの間、apt-cacheはシステムに認識されている情報のみを表示します(ただし、オフラインで使用できます)。 利用可能なパッケージのすべてのバージョンを表示します

関連:sudo su –とsudo su —の違いは何ですか?
Debian
  1. Debian9にJavaをインストールする方法

  2. DockerとDockerComposeをDebian11にインストールする方法

  3. Debian11BullseyeにRPMパッケージをインストールする方法

  1. Debian9にRをインストールする方法

  2. Debian9にYarnをインストールする方法

  3. Debian9にApacheMavenをインストールする方法

  1. Debian10LinuxにGitをインストールする方法

  2. Debian10にApacheMavenをインストールする方法

  3. Debian10にYarnをインストールする方法