Hi! A similar topic has been disscused here several days ago, but I still don't understand, how correctly update ports tree via cvsup. I have installed 4.9-release. I upgraded to -stable according to /usr/share/examples/cvsup/stable-supfile (I have changed only '*default host=...' line, all rest I kept untouched) and I done make world and kernel... I understand well how to upgrade system, but my questions about ports are: 1) Is it ok to upgrade ports, or do I have keep ports instaled from -release CD? 2) If I should upgrade ports, how exactly? Which file from examples I should use and how I need to modify it? There is nothing about ports upgrade in stable-supfile and ports-supfile deals about -current. Is it enough to use cvs-supfile from examples directory, change a cvsup server and comment out 'doc-all' and 'cvsroot-all', isn't it? Sorry for (maybe) stupid questions; I read comments in stable-supfile and handbook, but this is still not clear for me. Jozef
On Fri, Jan 23, 2004 at 03:29:44PM +0100, Jozef Babjak wrote:> A similar topic has been disscused here several days ago, but I still don't > understand, how correctly update ports tree via cvsup. I have installed > 4.9-release. I upgraded to -stable according to > /usr/share/examples/cvsup/stable-supfile (I have changed only '*default > host=...' line, all rest I kept untouched) and I done make world and kernel... > I understand well how to upgrade system, but my questions about ports are: > > 1) Is it ok to upgrade ports, or do I have keep ports instaled from -release CD?Upgrade ports - OK.> 2) If I should upgrade ports, how exactly? Which file from examples I should use > and how I need to modify it?Use CVSup and /usr/share/examples/cvsup/ports-supfile.> There is nothing about ports upgrade in > stable-supfile and ports-supfile deals about -current. Is it enough to use > cvs-supfile from examples directory, change a cvsup server and comment out > 'doc-all' and 'cvsroot-all', isn't it?Please don't change anythink in system-wide files, read cvsup(1) for understand -h key.> Sorry for (maybe) stupid questions; I read comments in stable-supfile and > handbook, but this is still not clear for me.Right a superb clear parts for handbook and then submit'em all via send-pr(1) interface to FreeBSD community. -- Rgdz, /"\ ASCII RIBBON CAMPAIGN Sergey Osokin aka oZZ, \ / AGAINST HTML MAIL http://ozz.pp.ru/ X AND NEWS / \
On Fri, Jan 23, 2004 at 03:29:44PM +0100, Jozef Babjak wrote:> Hi! > > A similar topic has been disscused here several days ago, but I still don't > understand, how correctly update ports tree via cvsup. I have installed > 4.9-release. I upgraded to -stable according to > /usr/share/examples/cvsup/stable-supfile (I have changed only '*default > host=...' line, all rest I kept untouched) and I done make world and kernel... > I understand well how to upgrade system, but my questions about ports are: > > 1) Is it ok to upgrade ports, or do I have keep ports instaled from -release CD?It is certainly OK, I would even recommend it.> > 2) If I should upgrade ports, how exactly? Which file from examples I should use > and how I need to modify it? There is nothing about ports upgrade in > stable-supfile and ports-supfile deals about -current. Is it enough to use > cvs-supfile from examples directory, change a cvsup server and comment out > 'doc-all' and 'cvsroot-all', isn't it?Start from /usr/share/examples/cvsup/ports-supfile change the cvsup server to use, and you should be ready to go. Ignore the references to -current in that file. The ports tree and upgrade procedure is identical between -stable and -current. The cvs-supfile example file is for when you want to get a local copy of the whole CVS repository, and not just the latest files. That can be very useful in some circumstances, but I don't think that is what you want or need at the moment.> > Sorry for (maybe) stupid questions; I read comments in stable-supfile and > handbook, but this is still not clear for me.-- <Insert your favourite quote here.> Erik Trulsson ertr1013@student.uu.se
If you are talking about updating the ports tree on a single machine via cvsup, then it's easy. Just make a copy of /usr/share/examples/cvsup/ports-supfile and update the name of the cvsup mirror in this config file (say cvsup3.freebsd.org). Then the command "cvsup -g -L 2 ports-supfile" will get you an updated tree. That's it. If you use portupgrade to manage your ports (recommended), you will then need to execute "portsdb -Uu" to rebuild your INDEX.db file. To answer your question below, there is only one ports tree. So, even if you are following -STABLE for the base code, you will still follow the HEAD tag (-CURRENT) for the ports tree. So you generally cvsup twice, once for /usr/src and once for /usr/ports. The ports tree is generally pretty stable, so it works out just fine. There are refinements to this procedure if you have many machines or want to keep a copy of the whole CVS tree (for looking at CVS logs, etc). Read the development(7) man page for an example. Richard Coleman richardcoleman@mindspring.com Jozef Babjak wrote:> Hi! > > A similar topic has been disscused here several days ago, but I still don't > understand, how correctly update ports tree via cvsup. I have installed > 4.9-release. I upgraded to -stable according to > /usr/share/examples/cvsup/stable-supfile (I have changed only '*default > host=...' line, all rest I kept untouched) and I done make world and kernel... > I understand well how to upgrade system, but my questions about ports are: > > 1) Is it ok to upgrade ports, or do I have keep ports instaled from -release CD? > > 2) If I should upgrade ports, how exactly? Which file from examples I should use > and how I need to modify it? There is nothing about ports upgrade in > stable-supfile and ports-supfile deals about -current. Is it enough to use > cvs-supfile from examples directory, change a cvsup server and comment out > 'doc-all' and 'cvsroot-all', isn't it? > > Sorry for (maybe) stupid questions; I read comments in stable-supfile and > handbook, but this is still not clear for me. > > Jozef
In addition, after running portsdb -Uu (after you've cvsup'ed), running: portversion -l "<" will provide you with a list of outdated installed ports/packages. You can then upgrade each package individually: portupgrade mplayer or upgrade all installed and out-of-date ports/packages: portupgrade -ar You might also want to read over ONLamp's take on this issue: Ports Tricks http://www.onlamp.com/pub/a/bsd/2003/08/07/FreeBSD_Basics.html Cleaning Up Ports http://www.onlamp.com/pub/a/bsd/2001/11/29/Big_Scary_Daemons.html Hope this helps, I can't guarantee that this is the absolute "right way", but it's worked for me without fail up to this point. If, however, there are any glaring errors in my procedures, please correct them. Kindest regards. -- Art Mason Technical Support - Team F Rackspace Managed Hosting (800) 961-4454 ext. 1223 amason@rackspace.com On Fri, 2004-01-23 at 08:29, Jozef Babjak wrote:> Hi! > > A similar topic has been disscused here several days ago, but I still don't > understand, how correctly update ports tree via cvsup. I have installed > 4.9-release. I upgraded to -stable according to > /usr/share/examples/cvsup/stable-supfile (I have changed only '*default > host=...' line, all rest I kept untouched) and I done make world and kernel... > I understand well how to upgrade system, but my questions about ports are: > > 1) Is it ok to upgrade ports, or do I have keep ports instaled from -release CD? > > 2) If I should upgrade ports, how exactly? Which file from examples I should use > and how I need to modify it? There is nothing about ports upgrade in > stable-supfile and ports-supfile deals about -current. Is it enough to use > cvs-supfile from examples directory, change a cvsup server and comment out > 'doc-all' and 'cvsroot-all', isn't it? > > Sorry for (maybe) stupid questions; I read comments in stable-supfile and > handbook, but this is still not clear for me. > > Jozef > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"