Mar*_*mo- 11 package-management metadata version
我正在编写一个脚本,需要一份所有当前支持的 Ubuntu 版本的列表。
如果你们中有人知道包含所有版本的可下载文件或所有版本的简单列表 currently supported versions. That would be great. Obviously they would have to be locations where Canonical keeps them up to date so the scripts continue to work into the future.
它应该适用于旧版本的 Ubuntu,比如任何受支持的版本 (lucid+) 等。
Jer*_*err 11
您可以使用 launchpadlib 来执行此操作。例如,在python中:
#!/usr/bin/env python
from launchpadlib.launchpad import Launchpad
lp = Launchpad.login_anonymously('series-support-check')
for series in lp.projects['ubuntu'].series:
print series.name, series.supported
Run Code Online (Sandbox Code Playgroud)
有关启动板 API 的更多信息,请查看Web 服务 API 帮助或API 参考。
您可以使用 parse 的输出ubuntu-support-status。这将列出不支持哪些软件,以及支持其他软件的时间。例如,LAMP 服务在 LTS 桌面上得到 5 年的支持,即使桌面本身只支持三年。该命令将反映这一点。它还将向您显示根本不支持来自 Universe、multiverse 等的包。
下面是一个例子:
you@ubuntu:~$ ubuntu-support-status
Support status summary of 'ubuntu':
You have 1873 packages (89.5%) supported until October 2014 (18m)
You have 14 packages (0.7%) that can not/no-longer be downloaded
You have 206 packages (9.8%) that are unsupported
Run with --show-unsupported, --show-supported or --show-all to see more details
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
464 次 |
| 最近记录: |