如何在Arch Linux中查找已安装的专有软件包?

系统 Linux
你是狂热的自由软件支持者吗?你目前在使用任何基于 Arch 的 Linux 发行版吗?我有一个小小的提示送给你!现在,你可以轻松地在 Arch Linux 及其变体中找到已安装的专有软件包。

https://s5.51cto.com/oss/201807/10/aebe0abda6be16614ad5b11cabdf6579.jpeg

你是狂热的自由软件支持者吗?你目前在使用任何基于 Arch 的 Linux 发行版吗?我有一个小小的提示送给你!现在,你可以轻松地在 Arch Linux 及其变体(如 Antergos、Manjaro Linux 等)中找到已安装的专有软件包。你无需在已安装软件包的网站中参考其许可细节,也无需使用任何其它外部工具来查明软件包是自由的还是专有的。(LCTT 译注:其实下面还是借助了一个外部程序)

 

在 Arch Linux 中查找已安装的专有软件包

一位开发人员开发了一个名为 “Absolutely Proprietary” 的实用程序,它是一种用于基于 Arch 发行版的专有软件包检测器。它将基于 Arch 系统中的所有安装包与 Parabola 的软件包 blacklist 和 aur-blacklist 进行比较,然后显示出你的斯托曼自由指数Stallman Freedom Index(“自由/总计”比分)。此外,你可以将该列表保存到文件中,并与其他系统/用户共享或比较。

在安装之前,确保你安装了 Python 和 Git。

然后,git clone 仓库:

  1. git clone https://github.com/vmavromatis/absolutely-proprietary.git

这条命令将会下载所有内容到你当前工作目录中的 absolutely-proprietary 目录。

进入此目录:

  1. cd absolutely-proprietary

接着,使用以下命令查找已安装的专有软件:

  1. python main.py

这条命令将会下载 blacklist.txtaur-blacklist.txt,并将本地已安装的软件包与远程软件包进行比较并显示其指数。

以下是在我的 Arch Linux 桌面的示例输出:

  1. Retrieving local packages (including AUR)...
  2. Downloading https://git.parabola.nu/blacklist.git/plain/blacklist.txt
  3. Downloading https://git.parabola.nu/blacklist.git/plain/aur-blacklist.txt
  4. Comparing local packages to remote...
  5. =============================================
  6. 47 ABSOLUTELY PROPRIETARY PACKAGES INSTALLED
  7. =============================================
  8.  
  9. Your GNU/Linux is infected with 47 proprietary packages out of 1370 total installed.
  10. Your Stallman Freedom Index is 96.57
  11.  
  12. +------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
  13. | Name | Status | Libre Alternatives | Description |
  14. +------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
  15. | chromium-pepper-flash | nonfree | | proprietary Google Chrome EULA, missing sources |
  16. +------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
  17. | faac | nonfree | | [FIXME:description] is a GPL'ed package, but has non free code that can't be distributed und|
  18. +------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
  19. | libunrar | nonfree | | part of nonfree unrar, Issue442 |
  20. +------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
  21. | opera | nonfree | | nonfree, nondistributable, built from binary installers, etc |
  22. +------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
  23. | shutter | nonfree | | need registered user to download (and access website) the source code and depends perl-net-d|
  24. +------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
  25. | ttf-ms-fonts | nonfree | | |
  26. +------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
  27. | ttf-ubuntu-font-family | nonfree | | Ubuntu font license considered non-free by DFSG and Fedora |
  28. +------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
  29. | unace | nonfree | | license forbids making competing ACE archivers from unace |
  30. +------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
  31. | unrar | nonfree | unar | |
  32. | | | fsf | |
  33. | | | unrar | |
  34. +------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
  35. | virtualbox | nonfree | | contains BIOS which needs a nonfree compiler to build from source (OpenWatcom compiler), doe|
  36. +------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
  37. | wordnet | nonfree | | |
  38. +------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
  39.  
  40.  
  41. Save list to file? (Y/n)

如你所见,我的系统中有 47 个专有软件包。就像我说的那样,我们可以将它保存到文件中稍后查看。为此,当提示你将列表保存在文件时,请按 y。然后按 y 接受默认值,或按 n 以你喜欢的格式和位置来保存它。

  1. Save list to file? (Y/n) y
  2. Save as markdown table? (Y/n) y
  3. Save it to (/tmp/tmpkuky_082.md): y
  4. The list is saved at /home/sk/absolutely-proprietary/y.md
  5.  
  6. You can review it from the command line
  7. using the "less -S /home/sk/absolutely-proprietary/y.md"
  8. or, if installed, the "most /home/sk/absolutely-proprietary/y.md" commands

你可能已经注意到,我只有 nonfree 包。它还会显示另外两种类型的软件包,例如 semifree、 uses-nonfree。

  • nonfree:这个软件包是公然的非自由软件。
  • semifree:这个软件包大部分是自由的,但包含一些非自由软件。
  • uses-nonfree:这个软件包依赖、推荐或不恰当地与其他自由软件或服务集成。

该使用程序的另一个显著特点是它不仅显示了专有软件包,而且还显示这些包的替代品。 

责任编辑:庞桂玉 来源: Linux中国
相关推荐

2018-06-11 08:50:46

LinuxArch Linux降级软件包

2021-10-03 14:30:17

Arch LinuxPKGBUILD 文件软件包

2023-01-03 15:53:00

LinuxFlatpak软件包

2023-01-02 11:34:04

LinuxFlatpak软件包

2018-06-22 10:05:04

Arch LinuxDEB软件包

2018-10-15 11:00:28

Linux软件包命令

2019-08-19 09:19:02

LinuxVimUbuntu

2019-08-19 11:20:33

Linux软件包命令

2017-02-27 18:59:37

LinuxYum软件包信息

2018-06-19 10:06:16

Linux软件测试Nix包管理器

2018-07-19 09:20:47

LinuxArchLinuxRPM包

2016-10-18 19:02:56

DebianUbuntu LinuMD5

2022-11-30 12:17:50

2023-02-14 13:32:55

2022-06-26 18:23:07

Ubuntu软件包

2019-06-03 11:15:32

Linux软件包命令

2023-02-21 11:30:38

2022-07-26 17:25:38

Linux

2020-11-11 08:00:00

Linux系统修复

2019-02-25 09:55:32

UbuntuDebian软件包
点赞
收藏

51CTO技术栈公众号