FreeBSD Install BASH Shell Using pkg command

www.lau‮‬tturi.com
FreeBSD Install BASH Shell Using pkg command

To install the BASH shell in FreeBSD using the pkg command, follow these steps:

  1. Update the package database. The pkg command uses a database of available packages to search for and install packages. To update the package database, run the following command:
pkg update

This will download the latest package information from the FreeBSD servers.

  1. Install the BASH shell. To install the BASH shell, use the install option of the pkg command:
pkg install bash

This will install the BASH shell and all of its dependencies.

  1. Set BASH as the default shell. To set BASH as the default shell for a user, use the chsh command. For example, to set BASH as the default shell for the john user, run the following command:
chsh -s /usr/local/bin/bash john

This will set BASH as the default shell for the john user.

  1. Test the BASH installation. To test the BASH installation, log out of the current shell and log back in. You should be able to use the BASH shell commands.

After completing these steps, the BASH shell will be installed on your FreeBSD system and set as the default shell for the specified user.

Created Time:2017-10-28 20:40:34  Author:lautturi