Feeds:
Posts
Comments

Archive for the ‘FreeBSD’ Category

logo-red

In FreeBSD there are two ways or technologies for installing third-party software: the FreeBSD Ports Collection (for installing from source), and packages (for installing from pre-built binaries). Both of the technologies have some advantages and disadvantages.

For Fresh ports and packages check for the following sites.

http://www.FreeBSD.org/ports/

http://www.FreshPorts.org/ 

http://www.freshmeat.net/

Using the Package System

# ftp -a ftp2.FreeBSD.org

Connected to ftp2.FreeBSD.org.

220 ftp2.FreeBSD.org FTP server (Version 6.00LS) ready.

331 Guest login ok, send your email address as password.

230-

230- This machine is in Vienna, VA, USA, hosted by Verio.

230- Questions? E-mail freebsd@vienna.verio.net.

230-

230-

230 Guest login ok, access restrictions apply.

Remote system type is UNIX.

Using binary mode to transfer files.

ftp> cd /pub/FreeBSD/ports/packages/sysutils/

250 CWD command successful.

ftp> get lsof-4.56.4.tgz

local: lsof-4.56.4.tgz remote: lsof-4.56.4.tgz

200 PORT command successful.

150 Opening BINARY mode data connection for ‘lsof-4.56.4.tgz’ (92375 bytes).

100% |**************************************************| 92375 00:00 ETA

226 Transfer complete.

92375 bytes received in 5.60 seconds (16.11 KB/s)

ftp> exit

# pkg_add lsof-4.56.4.tgz

#pkg_add –r lsof

Check for the following package management tools

1. Pkg-config

2. Pkg_add

3. Pkg_ckeck

4. Pkg_create

5. Pkg_deinstall

6. Pkg_delete

7. Pkg_fetch

8. Pkg_glob

9. Pkg_info

10. Pkg_sign

11. Pkg_sort

12. Pkg_version

13. Pkg_which

14. pkgdb

The easiest and fun part of installing packages is to use the Ports Collection.

There are some steps that need to go through before you can start using Ports for installing application in your system.

When installing your FreeBSD system, sysinstall asked if you would like to install the Ports Collection. If you chose no, you can follow these instructions to obtain the ports collection:

1. CVSup Method

2. Portsnap Method

Get the detail information here

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html

Once you setup Ports Collection, you can either you pkg tools to install the binaries or build your own package from the source.

Example:

Installing wine in Free BSD

# cd /usr/ports/emulators/wine

# pkg_add –r wine

Use –r option for remote fetching feature. This will determine the appropriate objformat and release and then fetch and install package.

OR,

Build and install wine from the Ports Collection

# cd /usr/ports/emulators/wine

# make clean && make clean-depends && make && make install | & tee `pwd | cut –d / -f 5`.log

Advertisements

Read Full Post »