Thursday, September 16, 2010

Install Midnight Commander (mc) on FreeBSD

It is quite easy to do from packages.

sudo pkg_add -r mc

and you ready to roll :-)

it will install all dependencies which you can see:



# pkg_info


gamin-0.1.10_4      A file and directory monitoring system
gettext-0.18_1      GNU gettext package
gio-fam-backend-2.24.1_1 FAM backend for GLib's GIO library
glib-2.24.1_1       Some useful routines of C programming (current stable versi
libiconv-1.13.1_1   A character set conversion library
libslang2-2.2.2_1   Routines for rapid alpha-numeric terminal applications deve
mc-4.7.2_1          Midnight Commander, a free Norton Commander Clone
pcre-8.02           Perl Compatible Regular Expressions library
perl-5.10.1_1       Practical Extraction and Report Language
pkg-config-0.23_1   A utility to retrieve information about installed libraries
png-1.4.3           Library for manipulating PNG images
python26-2.6.5      An interpreted object-oriented programming language


Update FreeBSD 8.0 to FreeBSD 8.1 on VPS (binary)

If your hosting provider was lazy and told you that you cannot get 8.1 yet but 8.0 is available updating is your fast and one choice.

I should not that it is a best option to update on brand new system since it is much easier than dealing with dependences later.

We will explain how to do binary update vs compiling custom kernel and ports since it will save your time and some space on your virtual box. This will be done in 3 easy steps followed by reboot!


First:

freebsd-update upgrade -r 8.1-RELEASE

This command will download all the necessary files and verify what needs to be installed/merged/replaced.
Second:

feebsd-update install

This command will actually install/merge/replace all the necessary files. Once complete we will need to reboot before continuing.

reboot

Third:

freebsd-update install

to finish updating the userland components.
Congratulations on your new FreeBSD 8.1-RELEASE VPS box!