列出从特定组件安装的所有软件(非免费,贡献)

Ale*_*lex 14 debian dpkg apt

有没有一种方法,列出所有non-free,并contrib通过安装在Debian的软件apt

/etc/apt/sources.list 如下

deb http://ftp.us.debian.org/debian/ wheezy main non-free contrib
deb-src http://ftp.us.debian.org/debian/ wheezy main non-free contrib

deb http://security.debian.org/ wheezy/updates main non-free contrib
deb-src http://security.debian.org/ wheezy/updates main non-free contrib

# wheezy-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ wheezy-updates main
deb-src http://ftp.us.debian.org/debian/ wheezy-updates main
Run Code Online (Sandbox Code Playgroud)

我在几年前添加了non-freecontrib因为我的视频卡需要一个非免费驱动程序,现在已被不需要非免费驱动程序的新驱动程序所取代。我想摆脱非自由的东西,但恐怕多年来我可能安装了其他我无法卸载的非自由软件。

Ric*_*cky 16

  • dpkg-query -W -f='${Section}\t${Package}\n' | grep ^non-free
  • aptitude search '~i ?section(non-free)'

Section 对于非自由路径中的所有内容,将是非自由的/...。

[注意] 对于 gcc 文档...

 This documentation is licensed under the terms of the GNU Free
 Documentation License, and contains invariant sections, so it can't be
 part of Debian main.
Run Code Online (Sandbox Code Playgroud)

(我也想知道,但直到提到它才费心检查。)

  • 这两个部分的一行是 `dpkg-query -W -f='${Section}\t${Package}\n' | 排序| egrep ^contrib\|^非自由` (3认同)
  • 因为它在 contrib :: debian/pool/contrib/f/flashplugin-nonfree (`Section: contrib/web`) (2认同)

Gee*_*eeb 7

有一个程序叫做VRMS(一个虚拟的 Richard M. Stallman),它会在一个简短的摘要中报告你系统上的所有非自由软件。它在 repo 中,您可以通过apt;-)安装它

  • 值得一提的是 `vrms` 将自己添加到 `/etc/cron.monthly`。安装一个月后,当我收到一封来自虚拟 Stallman 的邮件时,我感到很惊喜。 (3认同)