Installing software

Modified: 02 Sep 2015 22:49 UTC

There are two ways to install additional software on your SmartMachine:

Installing software from a package

For managing package releases, we strongly recommend you use pkgin. Pkgin is an apt/yum like tool that serves as an interface to pkgsrc. The below table lists the common pkgin commands.

You must run commands that install or update software as the root user or as admin using sudo.
Command Description
pkgin up Updates the pkgin database. You should run this command before installing any new packages just in case.
pkgin ls Lists all the installed packages.
pkgin av Lists all of the available packages.
pkgin in Installs a package
pkgin rm Removes a package
pkgin se Searches for a package
pkgin With no additional arguments, lists all of the available& pkgin commands.

For example, to install tidy, you run this:

sudo pkgin in tidy
Compiling software from source

If your preferred software is not available as a prebuilt package, you can compile it from source. Typically, software you compile from source code is compressed in a tarball that you need to de-compress and store somewhere on your local system. Generally, software like this includes a readme file that you can read for instructions on compiling the software.

For example, to compile and install the latest version of Ruby on your SmartMachine, you would use the following commands.

This example is using the GNU versions of tar and make.
gtar xvzf ruby-1.9.2-p0.tar.gz
cd ruby-1.9.2-p0
sudo gmake install

ruby -v]]>