FreeBSD; Finding port information and location.

Finding port information and location.
Source: http://www.freebsd. … ng-applications.html.

If you know the exact name of the port, but just need to find out which category it is in, you can use the whereis command. Simply type whereis file, where file is the program you want to install. If it is found on your system, you will be told where it is, as follows:

# whereis audacity
audacity: /usr/ports/audio/audacity


Yet another way to find a particular port is by using the Ports Collection’s built-in search mechanism. To use the search feature, you will need to be in the /usr/ports directory. Once in that directory, run make search name=program-name where program-name is the name of the program you want to find. For example, if you were looking for audacity:

# cd /usr/ports
# make search name=audacity
Port:   audacity-devel-1.3.7_1
Path:   /usr/ports/audio/audacity-devel
Info:   Audacity is a GUI editor for digital audio waveforms
Back to top

FreeBSD; Install and set bash as default shell with chsh command.

FreeBSD; Install and set bash as default shell with chsh command.

Step 1:
Install binary:

# pkg_add -r -v bash


or

Install port:

# portinstall bash


Step 2:
Find out bash path:

$ which bash

Output:

/usr/local/bin/bash


Step 3:
Now change shell:

# chsh -s /usr/local/bin/bash monsterb
Back to top