Categories
Unix & Linux

How to migrate from pkg_ tools to pkg on FreeBSD

As you can read on FreeBSD Wiki:

Pkg is the Next Generation package management tool for FreeBSD. It is the replacement for the current pkg_info/pkg_create/pkg_add tools that ports use to register local packages and which provide remote packages. Its main goals are to faciliate remote binary package upgrades. It also works with ports without remote binary packages.

Categories
Unix & Linux

How to upgrade Perl 5.10 to 5.14 on FreeBSD

The port ‘lang/perl5.10’ was removed on 2013-02-04 because: “Has expired: no longer under development, use lang/perl5.16 or lang/perl5.14”. So we need to move from older 5.10 to newer 5.14. To upgrade perl choose port managment tool you like ( portupgrade or portmaster).

Categories
Unix & Linux

Resolving error “tar: Unrecognized archive format on FreeBSD < 8.3"

Today I tried to install phpMyAdmin on older server, running on FreeBSD 8.1, but I’ve got error message:

Categories
Unix & Linux

How to determine current terminal shell in macOS/FreeBSD

Is there an easy way to determine what shell I’m using in terminal?

Categories
Unix & Linux

How to upgrade ZFS pool on FreeBSD

Yesterday I upgraded my web server to the latest version of FreeBSD (9.0-RELEASE). 

Categories
Unix & Linux

How to migrate from MySQL to MariaDB on FreeBSD

Before migration you should create backup of all databases. You can use mysqlhotcopy, Percona Xtrabackup or other methods.

Categories
Unix & Linux

Rehash For Bash

rehash updates FreeBSD’s path environment variables. When you have installed new port you may not be able to run the executables without specifying the path.

Categories
Unix & Linux

How to update ports on FreeBSD with portmaster or portupgrade

First, you should get a fresh copy of ports tree. I can recommend portsnap. If you are running portsnap for the first time, extract the snapshot into /usr/ports:

Categories
Unix & Linux

Incorrect time for Russia/Moscow timezone on FreeBSD

Now Russia/Moscow use MSK (GMT+4) timezone, how to fix it?