【发布时间】:2014-07-20 18:33:00
【问题描述】:
我如何找到不是来自官方 Ubuntu 存储库的所有已安装包?
某些软件包可能已使用dpkg -i ... 安装。
【问题讨论】:
-
这个问题似乎是题外话,因为它是关于包管理而不是编程。 Server Fault 或 Unix&Linux 可能会让你更幸运
标签: linux bash ubuntu debian apt-get
我如何找到不是来自官方 Ubuntu 存储库的所有已安装包?
某些软件包可能已使用dpkg -i ... 安装。
【问题讨论】:
标签: linux bash ubuntu debian apt-get
在 Ubuntu 存储库中有一个名为 apt-show-versions 的实用程序,它可以显示 Ubuntu 存档中程序的版本。所以跑了
apt-show-versions | grep 'No available version'
会拾取存储库未安装的任何内容。
【讨论】:
在 Fedora 上,我这样做 rpm -qi 以获取软件包信息。 dpkg中一定有类似的选项
[root@Shash ~]# rpm -qi perl-Scalar-List-Utils-1.31-293.fc20.x86_64
Name : perl-Scalar-List-Utils
Version : 1.31
Release : 293.fc20
Architecture: x86_64
Install Date: Sat 10 May 2014 06:41:29 PM IST
Group : Development/Libraries
Size : 81706
License : GPL+ or Artistic
Signature : RSA/SHA256, Sat 17 Aug 2013 01:28:36 AM IST, Key ID 2eb161fa246110c1
Source RPM : perl-Scalar-List-Utils-1.31-293.fc20.src.rpm
Build Date : Fri 16 Aug 2013 10:05:41 PM IST
Build Host : buildvm-06.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager : Fedora Project
Vendor : Fedora Project
URL : http://search.cpan.org/dist/Scalar-List-Utils/
Summary : A selection of general-utility scalar and list subroutines
Description :
This package contains a selection of subroutines that people have expressed
would be nice to have in the perl core, but the usage would not really be
high enough to warrant the use of a keyword, and the size so small such
that being individual extensions would be wasteful
.
dpkg -p {package}显示包组、版本、维护者的详细信息,>架构、显示依赖包、描述等dpkg -p lsof
注意:您必须编写脚本来查询和查找非官方包
【讨论】: