Linux中國

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

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

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

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

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

然後,git clone 倉庫:

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

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

進入此目錄:

cd absolutely-proprietary

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

python main.py

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

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

Retrieving local packages (including AUR)...
Downloading https://git.parabola.nu/blacklist.git/plain/blacklist.txt
Downloading https://git.parabola.nu/blacklist.git/plain/aur-blacklist.txt
Comparing local packages to remote...
=============================================
47 ABSOLUTELY PROPRIETARY PACKAGES INSTALLED
=============================================

Your GNU/Linux is infected with 47 proprietary packages out of 1370 total installed.
Your Stallman Freedom Index is 96.57

+------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
| Name | Status | Libre Alternatives | Description |
+------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
| chromium-pepper-flash | nonfree | | proprietary Google Chrome EULA, missing sources |
+------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
| faac | nonfree | | [FIXME:description] is a GPL'ed package, but has non free code that can't be distributed und|
+------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
| libunrar | nonfree | | part of nonfree unrar, Issue442 |
+------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
| opera | nonfree | | nonfree, nondistributable, built from binary installers, etc |
+------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
| shutter | nonfree | | need registered user to download (and access website) the source code and depends perl-net-d|
+------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
| ttf-ms-fonts | nonfree | | |
+------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
| ttf-ubuntu-font-family | nonfree | | Ubuntu font license considered non-free by DFSG and Fedora |
+------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
| unace | nonfree | | license forbids making competing ACE archivers from unace |
+------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
| unrar | nonfree | unar | |
| | | fsf | |
| | | unrar | |
+------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
| virtualbox | nonfree | | contains BIOS which needs a nonfree compiler to build from source (OpenWatcom compiler), doe|
+------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+
| wordnet | nonfree | | |
+------------------------|---------|--------------------|---------------------------------------------------------------------------------------------+

Save list to file? (Y/n)

如你所見,我的系統中有 47 個專有軟體包。就像我說的那樣,我們可以將它保存到文件中稍後查看。為此,當提示你將列表保存在文件時,請按 y。然後按 y 接受默認值,或按 n 以你喜歡的格式和位置來保存它。

Save list to file? (Y/n) y
Save as markdown table? (Y/n) y
Save it to (/tmp/tmpkuky_082.md): y
The list is saved at /home/sk/absolutely-proprietary/y.md

You can review it from the command line
using the "less -S /home/sk/absolutely-proprietary/y.md"
or, if installed, the "most /home/sk/absolutely-proprietary/y.md" commands

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

  • nonfree:這個軟體包是公然的非自由軟體。
  • semifree:這個軟體包大部分是自由的,但包含一些非自由軟體。
  • uses-nonfree:這個軟體包依賴、推薦或不恰當地與其他自由軟體或服務集成。

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

希望這有些幫助。我很快就會在這裡提供另一份有用的指南。敬請關注!

乾杯!

資源:

via: https://www.ostechnix.com/find-installed-proprietary-packages-arch-linux/

作者:SK 譯者:MjSeven 校對:wxy

本文由 LCTT 原創編譯,Linux中國 榮譽推出


本文轉載來自 Linux 中國: https://github.com/Linux-CN/archive

對這篇文章感覺如何?

太棒了
0
不錯
0
愛死了
0
不太好
0
感覺很糟
0
雨落清風。心向陽

    You may also like

    Leave a reply

    您的郵箱地址不會被公開。 必填項已用 * 標註

    這個站點使用 Akismet 來減少垃圾評論。了解你的評論數據如何被處理

    More in:Linux中國

    Linux中國

    捐贈 Let's Encrypt,共建安全的互聯網

    隨著 Mozilla、蘋果和谷歌對沃通和 StartCom 這兩家 CA 公司處罰落定,很多使用這兩家 CA 所簽發證書的網站紛紛尋求新的證書籤發商。有一個非盈利組織可以為大家提供了免費、可靠和安全的 SSL 證書服務,這就是 Let's Encrypt 項目。現在,它需要您的幫助
    Linux中國

    關於Linux防火牆iptables的面試問答

    Nishita Agarwal是Tecmint的用戶,她將分享關於她剛剛經歷的一家公司(印度的一家私人公司Pune)的面試經驗。在面試中她被問及許多不同的問題,但她是iptables方面的專家,因此她想分享這些關於iptables的問題和相應的答案給那些以後可能會進行相關面試的人。 所有的問題和相應的答案都基於Nishita Agarwal的記憶並經過了重寫。 嗨,朋友!我叫Nishita Agarwal。我已經取得了理學學士學位,我的專業集中在UNIX和它的變種(BSD,Linux)。它們一直深深的吸引著我。我在存儲方面有1年多的經驗。我正在尋求職業上的變化,並將供職於印度的P
    Linux中國

    Lets Encrypt 已被所有主流瀏覽器所信任

    旨在讓每個網站都能使用 HTTPS 加密的非贏利組織 Lets Encrypt 已經得了 IdenTrust的交叉簽名,這意味著其證書現在已經可以被所有主流的瀏覽器所信任。從這個裡程碑事件開始,訪問者訪問使用了Lets Encrypt 證書的網站不再需要特別配置就可以得到 HTTPS 安全保護了。 Lets Encrypt 的兩個中級證書 ...