Create account Login Webmail Contact Us



 
Knowledgebase
How to upgrade ports.
Posted by Mike C. on 11 September 2009 09:33 PM
If you are relatively new to FreeBSD you should have heard the term "ports" before. This is just a means to install any program you would need on FreeBSD quite easily. If you keep an up to date ports at all times this should be a breeze. Updating ports is important because security vulnerabilities and bugs are updated all the time. If you follow my simple steps you should be able to keep ports up to date. I will cover portupgrade in another article.

The first thing you need to do is create a file named ports-supfile. You can do this by typing "ee /root/ports-supfile" and adding the following text:

*default host=cvsup1.freebsd.org
*default base=/usr
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix
# If your network link is a T1 or faster, comment out the following line.
*default com

Press "Esc" and "A" and "A" to save. This is the first thing you need to do.

Secondly, you need to make sure cvsup is on your system. You can do this by typing "whereis cvsup." If it does not show up its most likely not in your system or in your path. If its not in /usr/local/bin/cvsup then its most likely not on your system. Type "pkg_add -r cvsup-without-gui" to add cvsup. Once this is done you can start to upgrade ports.

To upgrade ports type "/usr/local/bin/cvsup -g -L 2 /root/ports-supfile" and you should see it start to work. If it says that the server is busy don't worry it will eventually get in.

When it is done this means your ports are upgraded. This is all assuming your ports are in /usr/ports. If you have them installed somewhere else you most likely know what you are doing and don't need this artcile.

THIS DOES NOT UPGRADE YOUR INSTALLED PORTS. TO DO THIS YOU NEED TO SEE THE ARTCILE ON PORTUPGRADE!
(668 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: