![]() |
Now serving 108 guides. |
|
Installing Applications General Information Maybe you are switching to OpenBSD from Linux or Windows. Or maybe you are familiar with FreeBSD and its ports and packages systems. Either way, you may be wondering how to install applications on this secure OS. Like FreeBSD, most applications can be installed from the Internet. There are two different installation methods to choose from and they both deal with dependancies.Requirements
Ports The ports tree is a collection of useful programs that have been ported to OpenBSD. These are not the binary packages, but the source to compile from. The advantage of ports is that you can compile a program tailored to your system, as apposed to somebody else's.Installation Because ports are not recommended on OpenBSD, you have to manually install the ports tree.Note: Don't forget to substitute the version number with the version you have installed because mixing your ports tree version and OpenBSD version would be bad.
Note: Like before, replace the version numbers with the version you are running.
Usage The ports tree is located at/usr/ports and it is organized by category/port. For instance, you will find Apache2 located in /usr/ports/www/apache2. If you know what you want to install but you don't know where it's located in the ports tree, you can issue:
/usr/ports/security/nmap and now I can install it. Once you know what you want to install and where it's located, let's install it.
make simply compiles the program from source. install tells make to install the package after it's compiled. Finally, clean tells make to clean up after itself as it creates files and directories during the compiling process. If there are missing dependancies, make will also grab and install them.Note: An alternate is to run Note: You can compile various ports with additional configuration options so it is a good idea to read the Makefile before you install the port. That's all there is to it. You will see a lot of compiling text scroll by and eventually your command prompt will return to you. At that time, you will know your package was installed and is ready to be used.Now you can just as easily uninstall your application, say nmap, using the ports tree.
Packages OpenBSD packages are the binary versions of the ports and the recommended method of installing software on OpenBSD. This means somebody precompiled the application and so the installation goes by a lot quicker. There is no waiting for it to compile on your own system -- it just gets installed. This also means you cannot add or remove any special compiling options for the package.Usage Installation and removal is quite simple. To install a package, say nmap, and grab the tarball from the Internet you would issue:Note: Like before, replace the OpenBSD version number with the version you are running.
Now, if you want to uninstall a package you installed, say nmap, you will have to issue:
Note: You must specify the package with the version number as it appears in Author: Jon LaBass Find this guide useful?
Support the author: |
Copyright 2003 - 2012 BSD Guides. All rights reserved. |
About | Terms of Use | Privacy | Contact |

