How to Install Midnight Commander MC on PfSense 2.4.5

1.8
(4)

Sometimes you want to install some package that FreeBSD has, but pfSense does not (for example: mc).

Connect via SSH to the server, enter:

pkg install mc

and we read the abuse, from which it follows that the repository is not connected

[2.4.5-RELEASE][admin@gate]/usr/local/etc/pkg/repos: pkg install mc
Updating pfSense-core repository catalogue...
pfSense-core repository is up to date.
Updating pfSense repository catalogue...
pfSense repository is up to date.
All repositories are up to date.
pkg: No packages available to install matching 'mc' have been found in the repositories

The developers of the distribution believe that installing from the FreeBSD repositories can harm the system in one way or another (for example, pull in inappropriate versions of packages as dependencies).
But if you continue to persist in your desire (like me, for example), then you can do the following:

ee /usr/local/etc/pkg/repos/pfSense.conf

First line:

FreeBSD: { enabled: no }

change to:

FreeBSD: { enabled: yes }

Save file, then run:

pkg update

The install MC:

pkg install mc

and use:

How to Install Midnight Commander MC on PfSense 2.4.5
262

How useful was this post?

Click on a star to rate it!

Average rating 1.8 / 5. Vote count: 4

No votes so far! Be the first to rate this post.

Scroll to Top