How to install MC on Ubuntu 17.04
How to install MC on Ubuntu 17.04
Midnight commander is a free cross platform file manager that is developed as a console application with a text user interface. It includes the ability to view the contents of the RPM package files and to function as an FTP and FISH client. It also supports an editor called mcedit, which can be executed as a standalone program or from Midnight commander. This tutorial covers the installation procedure of Midnight commander on Ubuntu 17.04.
Installation procedure
To start the installation procedure, add the repo by executing the following command.
root@linuxhelp1:~# add-apt-repository ppa:eugenesan/ppa
This repository contains collection of customized, updated, ported and backported
packages for two last LTS releases and latest pre-LTS release.
Packages for older releases relocated to ppa:eugenesan/archive or deleted.
+-------------------------------------------------------------------------------------+
| Disclaimer:
+-------------------------------------------------------------------------------------+
* Packages in this a nd related PPAs are for personal use only.
They developed specifically for several custom environments and may not work for you.
* Usage of packages in this PPA, in some forms, might contradict licenses of software
packaged in this and related PPAs. End users and administrator are responsible for
runtime licensing and possible legal consequences.
* Some packages provided with their dependencies while some might require additional
Ubuntu repositories and external PPAs. Below is the list of
.
.
.
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keybox ' /tmp/tmp58gcy2yp/pubring.gpg' created
gpg: /tmp/tmp58gcy2yp/trustdb.gpg: trustdb created
gpg: key E61380B28313A596: public key " Launchpad synergy+" imported
gpg: Total number processed: 1
gpg:imported: 1
OK
The repositories are added to the target system. Update the repo by executing the apt-get update command.
root@linuxhelp1:~# apt-get update
Get:1 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty InRelease [15.4 kB]
Hit:2 http://in.archive.ubuntu.com/ubuntu zesty InRelease
Hit:3 http://security.ubuntu.com/ubuntu zesty-security InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu zesty-updates InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu zesty-backports InRelease
Get:6 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main amd64 Packages [1,100 B]
Get:7 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main i386 Packages [1,108 B]
Get:8 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main Translation-en [1,288 B]
Fetched 18.9 kB in 1s (12.3 kB/s)
Reading package lists... Done
The target system is updated with the required repositories. Install the MC package by running the following command and press y to continue with the installation process.
root@linuxhelp1:~# apt-get install mc -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libssh2-1 mc-data
Suggested packages:
arj catdvi | texlive-binaries dbview djvulibre-bin gv libaspell-dev links | w3m | lynx odt2txt python-boto python-tz
The following NEW packages will be installed:
libssh2-1 mc mc-data
0 upgraded, 3 newly installed, 0 to remove and 89 not upgraded.
Need to get 1,760 kB of archives.
After this operation, 7,456 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 libssh2-1 amd64 1.7.0-1ubuntu1 [73.5 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 mc-data all 3:4.8.18-1 [1,219 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 mc amd64 3:4.8.18-1 [468 kB]
Fetched 1,760 kB in 6s (281 kB/s)
Selecting previously unselected package libssh2-1:amd64.
(Reading database ... 168833 files and directories currently installed.)
Preparing to unpack .../libssh2-1_1.7.0-1ubuntu1_amd64.deb ...
Unpacking libssh2-1:amd64 (1.7.0-1ubuntu1) ...
Selecting previously unselected package mc-data.
Preparing to unpack .../mc-data_3%3a4.8.18-1_all.deb ...
Unpacking mc-data (3:4.8.18-1) ...
Selecting previously unselected package mc.
Preparing to unpack .../mc_3%3a4.8.18-1_amd64.deb ...
Unpacking mc (3:4.8.18-1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
Setting up mc-data (3:4.8.18-1) ...
Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Setting up libssh2-1:amd64 (1.7.0-1ubuntu1) ...
Processing triggers for libc-bin (2.24-9ubuntu2) ...
Processing triggers for doc-base (0.10.7) ...
Processing 1 added doc-base file...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
Setting up mc (3:4.8.18-1) ...
update-alternatives: using /usr/bin/mcview to provide /usr/bin/view (view) in auto mode
The application is successfully installed in the target system. To run the application, type the package name in the ubuntu dashboard and click on the icon to run the application.
The midnight commander tool is running successfully.
For removing the package, execute the following command and press y to continue with the uninstallation process.
root@linuxhelp1:~# apt-get remove mc -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libssh2-1 mc-data
Use ' apt autoremove' to remove them.
The following packages will be REMOVED:
mc
0 upgraded, 0 newly installed, 1 to remove and 89 not upgraded.
After this operation, 1,478 kB disk space will be freed.
(Reading database ... 169201 files and directories currently installed.)
Removing mc (3:4.8.18-1) ...
update-alternatives: using /usr/bin/vim.tiny to provide /usr/bin/view (view) in auto mode
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Wasn' t that an easy installation process? Midnight commander tool can also rename groups of files unlike other file manager which can rename only one file at a time.
mc --nocolor