自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

如何在Arch Linux中查找已安裝的專有軟件包?

系統(tǒng) Linux
你是狂熱的自由軟件支持者嗎?你目前在使用任何基于 Arch 的 Linux 發(fā)行版嗎?我有一個小小的提示送給你!現(xiàn)在,你可以輕松地在 Arch Linux 及其變體中找到已安裝的專有軟件包。

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

你是狂熱的自由軟件支持者嗎?你目前在使用任何基于 Arch 的 Linux 發(fā)行版嗎?我有一個小小的提示送給你!現(xiàn)在,你可以輕松地在 Arch Linux 及其變體(如 Antergos、Manjaro Linux 等)中找到已安裝的專有軟件包。你無需在已安裝軟件包的網(wǎng)站中參考其許可細節(jié),也無需使用任何其它外部工具來查明軟件包是自由的還是專有的。(LCTT 譯注:其實下面還是借助了一個外部程序)

 

在 Arch Linux 中查找已安裝的專有軟件包

一位開發(fā)人員開發(fā)了一個名為 “Absolutely Proprietary” 的實用程序,它是一種用于基于 Arch 發(fā)行版的專有軟件包檢測器。它將基于 Arch 系統(tǒng)中的所有安裝包與 Parabola 的軟件包 blacklist 和 aur-blacklist 進行比較,然后顯示出你的斯托曼自由指數(shù)Stallman Freedom Index(“自由/總計”比分)。此外,你可以將該列表保存到文件中,并與其他系統(tǒng)/用戶共享或比較。

在安裝之前,確保你安裝了 Python 和 Git。

然后,git clone 倉庫:

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

這條命令將會下載所有內(nèi)容到你當前工作目錄中的 absolutely-proprietary 目錄。

進入此目錄:

  1. cd absolutely-proprietary

接著,使用以下命令查找已安裝的專有軟件:

  1. python main.py

這條命令將會下載 blacklist.txtaur-blacklist.txt,并將本地已安裝的軟件包與遠程軟件包進行比較并顯示其指數(shù)。

以下是在我的 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)

如你所見,我的系統(tǒng)中有 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

你可能已經(jīng)注意到,我只有 nonfree 包。它還會顯示另外兩種類型的軟件包,例如 semifree、 uses-nonfree。

  • nonfree:這個軟件包是公然的非自由軟件。
  • semifree:這個軟件包大部分是自由的,但包含一些非自由軟件。
  • uses-nonfree:這個軟件包依賴、推薦或不恰當?shù)嘏c其他自由軟件或服務(wù)集成。

該使用程序的另一個顯著特點是它不僅顯示了專有軟件包,而且還顯示這些包的替代品。 

責任編輯:龐桂玉 來源: Linux中國
相關(guān)推薦

2018-06-11 08:50:46

LinuxArch Linux降級軟件包

2021-10-03 14:30:17

Arch LinuxPKGBUILD 文件軟件包

2023-01-02 11:34:04

LinuxFlatpak軟件包

2023-01-03 15:53:00

LinuxFlatpak軟件包

2018-06-22 10:05:04

Arch LinuxDEB軟件包

2019-08-19 11:20:33

Linux軟件包命令

2019-08-19 09:19:02

LinuxVimUbuntu

2018-07-19 09:20:47

LinuxArchLinuxRPM包

2018-10-15 11:00:28

Linux軟件包命令

2017-02-27 18:59:37

LinuxYum軟件包信息

2018-06-19 10:06:16

Linux軟件測試Nix包管理器

2016-10-18 19:02:56

DebianUbuntu LinuMD5

2023-02-14 13:32:55

2022-11-30 12:17:50

2023-02-21 11:30:38

2022-06-26 18:23:07

Ubuntu軟件包

2019-06-03 11:15:32

Linux軟件包命令

2020-11-11 08:00:00

Linux系統(tǒng)修復(fù)

2019-02-25 09:55:32

UbuntuDebian軟件包

2022-07-26 17:25:38

Linux
點贊
收藏

51CTO技術(shù)棧公眾號