Fedora 24: Midnight Commanderをインストールする

CUIベースのファイルマネージャーであるMidnight Commanderのインストール方法について記載します。

 

1 Midnight Commanderのインストール

Fedora 24のMidnight CommanderはzipファイルのView実行時に以下のエラーが表示されます。

gzip: stdin has more than one entry--rest ignored

0001_mc-gzip-error.png

エラー表示を防ぐためCentOS 7のMidnight Commanderをインストールします。

sudo dnf builddep -y mc
sudo dnf instal -y rpmdevtools
CENTOS=http://vault.centos.org/centos/
wget ${CENTOS}/7/os/Source/SPackages/mc-4.8.7-8.el7.src.rpm
rpmbuild --rebuild mc-4.8.7-8.el7.src.rpm
sudo dnf install -y rpmbuild/RPMS/x86_64/mc-4.8.7-8.fc24.x86_64.rpm
wget https://raw.githubusercontent.com/MidnightCommander/mc/master/misc/skins/modarcon16.ini
sudo cp modarcon16.ini /usr/share/mc/skins/

2 実行結果

こちらの設定を適用させると以下の様になります。

0002_mc-centos-7.png