There are two ways to install additional software on your SmartMachine:
- install it from a package
- compile it from source
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 arugments, lists all of the available pkgin commands. |
For example, to install tidy, you run this:
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 lastest version of Ruby on your SmartMachine, you would use the following commands.
| This example is using the GNU versions of tar and make. |