Answers:
您可以使用ubuntu-support-status
命令
$ ubuntu-support-status --help Usage: ubuntu-support-status [options] Options: -h, --help show this help message and exit --show-unsupported Show unsupported packages on this machine --show-supported Show supported packages on this machine --show-all Show all packages with their status --list Show all packages in a list
带有相应的参数--show-unsupported
。
以下是我的16.04.5 LTS系统的示例:
$ ubuntu-support-status --show-unsupported Support status summary of 'hostname': You have 94 packages (1.9%) supported until April 2021 (Community - 5y) You have 2668 packages (54.0%) supported until April 2021 (Canonical - 5y) You have 647 packages (13.1%) supported until April 2019 (Community - 3y) You have 79 packages (1.6%) that can not/no-longer be downloaded You have 1456 packages (29.4%) that are unsupported No longer downloadable: acroread acroread-bin:i386 cpp-4.4 cpp-4.5 cpp-4.6 ... Unsupported: abiword-plugin-grammar adequate aglfn alien android android-tools-adb android-tools-fastboot ant ant-optional antiword apt-file ... y-ppa-manager yad zenmap
(我添加了...
以限制行数)。
Debian Wiki显示了如何分辨本机软件包和非本机软件包之间的区别。
如果要查看sources.list
和已安装软件包之间的关系,可以使用dpkg --get-selections
和apt-cache show
和apt-get update
。
或在带有curl的软件包数据库中搜索。
在Fedora / RHEL中,有一个工具可以验证文件是否来自受支持的软件包。
dpkg --get-selections
不输出任何部分。apt-cache show \*
可以,但是比接受的解决方案要慢得多,因为它提供了更多的信息。
我最终做了什么,以获取不完全受支持且没有混乱的所有内容的可读列表:
# sed removes summary lines and packages supported for five years
# and prints one line per not fully supported package:
ubuntu-support-status --show-all | sed '0,/summary/ d; /^Support.*5y/,/^$/ d; /^You have/,/^$/ d; /:/ n; s- $--; s- -\n-g'
No longer downloadable:
Unsupported:
cgroup-tools
...
Supported until April 2021 (Community - 3y):
fonts-dejavu
libx86-1
openjdk-8-jre
openjdk-8-jre-headless
vrms
列出“非免费”软件。