Welcome to JasonMorgan.Com
Search  

Menu
 Home
 FAQ
 Home
 Legal
 My Wiki
 Content
 Calendar
 GuestBook
 Mobile View
 News
 Topics
 Top 10
 Newsletter
 Submit News
 Stories Archive
 Downloads & Links
 Web Links
 Downloads
 Info
 Search
 Surveys
 Statistics
 Feedback
 Admin Login
 Your Account
 Recommend Us
 IT
 Tech
 Hacks
 FreeBSD
 Miscellaneous

Who's Online
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

User Info
Your IP: 38.107.191.107

Welcome, Anonymous
Nickname
Password
Security Code
Security Code
Type Security Code


· Register
· Lost Password
Server Date/Time
5 September 2010 17:37:42 PDT (GMT -7)

  
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

Ports Collection | Login/Create an Account | 5 comments | Search Discussion
The comments are owned by the poster. We aren't responsible for their content.

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: FriendShip Quotes (Score: 1)
by birkenstock on Thursday, August 12, 2010 @ 02:27:19 PDT
(User Info | Send a Message)

High-quality and cheap Timberland boots online store. There are huge selection in Timberland boots sale. Timberland boots are fresh looking. Many women can’t help falling in love Timberland women's Roll-Top boots . Of course, Timberland Kid's boot are available, too. They are a great addition to your wardrobe.




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.




uggs london (Score: 1)
by uggsoflondon1 on Wednesday, August 25, 2010 @ 21:01:52 PDT
(User Info | Send a Message)

cheap ugg boots london cheap ugg boots london [www.uggsoflondon1.com] vibram five fingers classic vibram five fingers classic [www.acevibram.com] ugg of london sale ugg of london sale [www.uggsoflondon1.com] tiffany necklaces tiffany necklaces [www.shoppingtiffany.com] ugg bailey button boots grey ugg bailey button boots grey [www.topsuggboots.com] tiffany sets tiffany sets [www.shoppingtiffany.com] tiffany necklace heart tiffany necklace heart [www.shoppingtiffany.com] ugg boots london ugg boots london [www.uggsoflondon1.com] ugg bailey button ugg bailey button [www.topsuggboots.com] ugg boots in london shops ugg boots in london shops [www.uggsoflondon1.com] five fingers discount five fingers discount [www.acevibram.com] air max bw air max bw [www.airmaxmart.com] nike air max tn nike air max tn [www.airmaxmart.com] ugg bailey ugg bailey [www.uggsofau.com] air max classic air max classic [www.airmaxmart.com] discount vibram fivefingers discount vibram fivefingers [www.acevibram.com] uggs london uggs london [www.uggsoflondon1.com] five fingers classic five fingers classic [www.acevibram.com] tiffany necklaces on sale tiffany necklaces on sale [www.shoppingtiffany.com] ugg in london ugg in london [www.uggsoflondon1.com] ugg boots in london ugg boots in london [www.uggsoflondon1.com] tiffany necklace heart tiffany necklace heart [www.shoppingtiffany.com]




 
Related Links
· More about FreeBSD
· News by JasonMorgan


Most read story about FreeBSD:
Upgrading OpenSSH & OpenSSL on FreeBSD the right way!


Article Rating
Average Score: 0
Votes: 0

Please take a second and vote for this article:

Excellent
Very Good
Good
Regular
Bad


Options

 Printer Friendly Printer Friendly


Associated Topics

Spacestation

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2009 by me.


You can syndicate our news using the file backend.php or ultramode.txt


(Original PHP-Nuke Code Copyright © 2004 by Francisco Burzi)
Page Generation: 0.10 Seconds