hitest Posted December 11, 2006 Report Share Posted December 11, 2006 Hi,I've updated portsnap with the following commands#portsnap fetch#portsnap extractCould someone please point me in the right direction on how to use ports to install programs?I'd like to install CUPS and Thunderbird.I remembered the above commands from my last BSD install (Carnevil helped a lot). Thank you.hitest Quote Link to post Share on other sites
Pierce Posted December 11, 2006 Report Share Posted December 11, 2006 the way i do it, iscd /usr/portsthen the relivant folderswhen in the program folder you want to install,make && make installThen follow the instructions.The ports snap if im correct, updates the ports tree which is a good idea before going into /usr/ports and installing any application.Pierce Quote Link to post Share on other sites
hitest Posted December 11, 2006 Author Report Share Posted December 11, 2006 the way i do it, iscd /usr/portsthen the relivant folderswhen in the program folder you want to install,make && make installThen follow the instructions.The ports snap if im correct, updates the ports tree which is a good idea before going into /usr/ports and installing any application.PierceThanks, Pierce:-) Quote Link to post Share on other sites
shanenin Posted December 11, 2006 Report Share Posted December 11, 2006 When you are finished, make sure you do make clean. I think you can do make clean in the /usr/ports directory to clean out all of your files down the tree left over from compiling. I tried to build gnome from scratch and had many gbs left over from compiling, in fact I ran my system out of space. Quote Link to post Share on other sites
hitest Posted December 12, 2006 Author Report Share Posted December 12, 2006 When you are finished, make sure you do make clean. I think you can do make clean in the /usr/ports directory to clean out all of your files down the tree left over from compiling. I tried to build gnome from scratch and had many gbs left over from compiling, in fact I ran my system out of space.Thanks for the tip, shanenin. I did the same thing on my system. I'll remember make clean next time:-) Quote Link to post Share on other sites
Carnevil Posted December 12, 2006 Report Share Posted December 12, 2006 (edited) #cd /usr/ports/mail/thunderbird#make install cleanor if you want to use packages #pkg_add -r thunderbird#cd /usr/ports/printing/cups#make install cleanit also has a package.#pkg_add -r cupsHere's a great website for looking up ports. http://www.freshports.org/Using make install clean will install the program as well as clean up what's left over.One other thing I forgot to add is you should install portupgrade before anything else. This will give you access to two things that are needed after you update your ports tree. portsdb and pkgdb It'll also give you the portupgrade tool for upgrading your ports.#cd /usr/ports/sysutils/portupgrade#make install cleanAlso remember you only need to run portsnap fetch and portsnap extract the first time you update your ports tree. After that you only need to run the command portsnap fetch update. I usually run portsnap fetch update every few days.Here's the commands I use for updating the ports tree.#portsnap fetch updateafter that is done#portsdb -u this will up date your ports database#pkgdb -F this will check for any problems in the package database.Here's a pretty decent article on portupgrade http://www.onlamp.com/pub/a/bsd/2003/08/28...ics.html?page=1 The only problem with the article is it talks about using cvsup instead of portsnap. Edited December 13, 2006 by Carnevil Quote Link to post Share on other sites
shanenin Posted December 12, 2006 Report Share Posted December 12, 2006 Using make install clean will install the program as well as clean up what's left over.I will have to remember that one. Thanks :-) Quote Link to post Share on other sites
hitest Posted December 13, 2006 Author Report Share Posted December 13, 2006 Awesome tips, thank you, Carnevil!! I appreciate your help man:-) I'm bookmarking this thread!! Quote Link to post Share on other sites
hitest Posted December 14, 2006 Author Report Share Posted December 14, 2006 Thanks, Carnevil for the commands make install clean. That works like a charm:-) Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.