如何在 fedora 23 中開啟 .rar 文件

如何在 fedora 23 中開啟 .rar 文件

我使用的是 Fedora 23 64 位元。我已經下載了一些.rar文件。

谷歌搜尋後,我找到了建議使用unrar它們可以打開的解決方案。

但我無法安裝unrar。我在谷歌搜尋安裝後嘗試了以下步驟,但失敗了。

解決方案一:

免費發布:

su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm'

對於非自由發布:

su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/nonfree`/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'`

安裝unrar

在終端機中執行以下命令,並在出現提示時輸入使用者的密碼。

sudo yum install unrar

解決方案2:

# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

yum install unrar

但沒有任何作用。我的系統是最新的。

如何.rar在 Fedora 中開啟檔案?

答案1

安裝unar軟體包。

$ dnf info unar
...
Name        : unar
Arch        : x86_64
Epoch       : 0
Version     : 1.10.1
Release     : 1.fc24
Size        : 4.6 M
Repo        : @System
From repo   : updates
Summary     : Multi-format extractor
URL         : http://unarchiver.c3.cx/commandline
License     : LGPLv2+
Description : The command-line utilities lsar and unar are capable of listing
            : and extracting files respectively in several formats including
            : RARv3. unar can serve as a free and open source replacement of
            : unrar.
$ sudo dnf install unar

存檔管理器(GUI 應用程式)將能夠開啟.rar檔案。

答案2

.rar 是 Winrar 用來壓縮檔案的副檔名,它們類似於 Zip 文件,但格式不同。許多其他程式可以解壓縮它,您應該下載免費的 7-Zip,這是這裡最好的程式之一http://www.7-zip.org/download.html,根據您的情況選擇作業系統的風格 Fedora,安裝並使用它來解壓縮您的文件

答案3

Fedora 25 Xfce:

sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install unrar

相關內容