advertisement
Premier Club Log In/Registration
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   SKILLBUILDING  |   TIP BANK  |   SOURCEBANK  |   FORUMS  |   NEWSLETTERS
Browse DevX
Partners & Affiliates
advertisement
advertisement
Tip of the Day
Average Rating: 4.3/5 | Rate this item | 3 users have rated this item.
Expertise: Beginner
Language: command line
April 16, 2004
Install CVsup to Stay Current with FreeBSD
If you have just installed FreeBSD's ports collection using a CD-ROM, you must upgrade to the latest releases of the ported software you need. If you have just installed FreeBSD and the ports collection via FTP, you are already current.

Fortunately, FreeBSD makes staying current extremely easy:


    TYPE cd /usr/ports/net/cvsup-without-gui
    TYPE make
    TYPE make install
    TYPE make clean
As root, copy /usr/share/examples/cvsup/ports-supfile to a new location. In this case, copy to /root on your home directory:

    TYPE cp /usr/share/examples/cvsup/ports-supfile /root/ports-supfile
* Notice the space between ports-supfile and /root/ports-supfile. Edit ports-supfile with your favorite editor:

    TYPE ee /root/ports-supfile
Change the ports-supfile (line 50 or so) to look something like the following:

#*********************************************************************
*default host=cvsup.ca.FreeBSD.org.
*default base=/usr
*default prefix=/usr
*default release=cvs
*default delete use-rel-suffix
*default tag=.
src-all
#**********************************************************************
Pay particular attention to the first and last lines. Choosing a CVsup mirror that is located near you will save a lot of time. At the very least, download one from the country where you live. Click here for a list of mirrors. After you've done this, press Escape and then Return to leave editor. Press Return to save your changes. Before running CVsup, you have to reboot your system:

    TYPE  shutdown -r now
Once you have once again logged in as root: Now it's time to run CVsup:

    TYPE cvsup -g -L 2 /root/ports-supfile
This command upgrades all the skeletons in your ports collection. Depending on your Internet connection speed, the upgrade can take an hour or longer.
Gregory L. Magnusson
If you have a hot tip and we publish it, we'll pay you. However, due to accounting overhead we no longer pay $10 for a single tip submission. You must accumulate 10 acceptable tips to receive payment. Be sure to include a clear explanation of what the technique does and why it's useful. If it includes code, limit it to 20 lines if possible. Submit your tip here.
Please rate this item (5=best)
 1  2  3  4  5
advertisement
advertisement
Advertising Info  |   Member Services  |   Permissions  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs