|
Home |
| |
|
News |
| |
|
Downloads & Links |
| |
|
Info |
| |
|
IT |
| | |
|
|
There are currently, 4 guest(s) and 0 member(s) that are online.
You are an Anonymous user. You can register for free by clicking here |
|
|
|
|
Ports Collection Posted on Monday, December 10, 2007 @ 18:25:29 PST Topic: FreeBSD
|
Learning and understanding FreeBSD Ports can be somewhat daunting. The amount of information you find on it is large and vast. Here is a compressed and what I hope you find to be useful article on the subject.
Getting the ports collection
If you did not choose to install the ports collection during the FreeBSD installation then you will need to get it through Cvsup.
The ports collection can also be accessed by ftp using
/stand/sysinstall
Once you are in the FreeBSD configuration tool go to Configure and then Packages. Here you will want to choose FTP. Select the packages you wish to install and go to Install at the end and FreeBSD will use the pkg_add tool on each one to quickly add it.
Finding a Port
With so many ports it can be hard to find the one you are looking for. The easiest way to find a port is to use the ports directory on the FreeBSD website.
To search locally on your machine you can use the locate command if you know a word in the name of the package
locate package | grep distinfo
The "grep distinfo" filters out other files in the port directory so each port that comes up is only shown once.
Files in the port directories
Makefile
- This is the main file that tells where the files for the port are located and the options to build with. If you wish to install the port with certain options it is a good idea to look through this file and see what is available.
distinfo
- Gives the version number of the package
pkg-message
- This is displayed after the port is installed giving information on how to finish setting it up, or security warnings. If you get the port installed and can't figure out how to start it, or where the config files are you should look back at the message.
pkg-plist
- A list of files in the package.
Installing a port
To install a port change to its directory and do a "make install". For example, if we were to install the dns server bind9 it would look like this
cd /usr/ports/dns/bind9
make install
To delete the tar file that was downloaded to install bind9 once the install was complete simply append the command "distclean" after install like this
cd /usr/ports/dns/bind9
make install distclean
To clean out compiled files from the make use "make clean" in the port's directory
make clean
If you wished to uninstall bind9 you could do so with the following
cd /usr/ports/dns/bind9
make deinstall
Many ports give a menu during the install asking you to choose certain options. If you wish to skip these menus "all" may be appended after "make install" to install the port more forcefully
make install all
Removing a saved configuration
Ports that give a menu with installation options after starting the make save your choices and this saved config needs to be manually removed if you want to rebuild the port later and want different options. To delete a saved config go to port's directory and run
make rmconfig
Viewing installed packages and removing them
A list of all installed packages on the machine can be viewed with "pkg_info"
pkg_info
autoconf-2.53_3
autoconf-2.59_2
automake-1.5_2,1
Deleting a package can be done with "pkg_delete"
pkg_delete -f autoconf-2.53_3
The -f flag forces the package to be deinstalled even if other packages depend on it.
Cleaning up the ports
FreeBSD saves all files downloaded to install the ports to /usr/ports/distfiles
Removes all of these files, but not the files created during the build. To get rid of these you must run
rm -r /usr/ports/distfiles/*
The -CD flags will remove all files in the work directories within the ports tree and any unreferenced distfiles.
portsclean -CD
Upgrading a port
A port can be upgraded with the port /usr/ports/sysutils/portupgrade
portupgrade autoconf-2.53_3
source=http://www.freebsdmadeeasy.com/tutorials/freebsd/using-the-freebsd-ports-collection.php |
|
|
No Comments Allowed for Anonymous, please register |
|
Re: Ports Collection (Score: 1) by birkenstock on Tuesday, July 27, 2010 @ 18:53:46 PDT (User Info | Send a Message) | Wearing flat soled sandals is a staggering change for those women who just love wearing high heeled shoes and sandals. What sandals can change them? ----Birkenstock sandals. Its stylish design and super comfort capture the hearts of them. Additionally, there are a lot of selection of Birkenstock shoes, such as Birkenstock Gizeh, which is a good reason to switch on them. It brings troubles to your back to wear high heeled shoes and sandals. The reason is that high heel can contort the nature posture of your body, giving you orthopedic problems like chronic back pains and damages. People who wear heeled shoes and sandals for a long time suffer from these problems. Aside from the fact that Birkenstock are fresh looking, they also give protection to your feet. Therefore, many women can’t help falling in love with Birkenstocks. |
|
|
Re: Powerful Sentences (Score: 1) by birkenstock on Friday, August 06, 2010 @ 20:13:48 PDT (User Info | Send a Message) | | UGG is a luxury brand.In our ugg outlet, we sincerely provide you with high-quality and cheap UGG. such as ugg sundance II and ugg bailey button are made of of twin-faced sheepskin with fleece on the inside and with a tanned outer surface, give you super comfort for everyday life. There are a huge selection in our ugg boots sale store |
|
|
Re: Powerful Sentences (Score: 1) by birkenstock on Monday, August 16, 2010 @ 19:27:21 PDT (User Info | Send a Message) | | p90x workout [www.p90x-fitness1.com] is a home system developed by Tony Horton.It aims to improve physical fitness from regular to ripped in just 90 days.If you already own the equipment needed for P90X and only need to order the P90X DVD [www.p90x-fitness1.com], including: 12 DVD P90X Workout DVD's,3-Phase P90X Nutrition Plan and P90X Fitness [www.p90x-fitness1.com] Guide and Workout Calendar.Additionaly,another workout programs that will get your body ripped is Insanity Workout [www.p90x-fitness1.com],of whihch Shaun T's Insanity workout DVD [www.p90x-fitness1.com] is the best. |
|
|
| |
|
Associated Topics
 |
|
|