Re: Freebsd-update to 9.3 from 9.2

看板FB_questions作者時間11年前 (2014/07/19 18:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串10/19 (看更多)
On 18 July 2014, at 16:40, Michael Powell <nightrecon@hotmail.com> wrote: > Doug Hardie wrote: > = > [snip] >> = >> = >> svn doesn't work either: >> = >> svn checkout https://svn0.us-west.FreeBSD.org/base/release/9.3.0 /usr/src > = > Incorrect syntax, which creates a new problem that didn't exist yet. Thats interesting. The command I used came directly from the manual. It a= lso worked. There is a real problem with the documentation for upgrading t= he base and ports. The typical man page structure only tells you what the = various flags are etc. It doesn't tell you how to accomplish the normal go= als. There needs to be some direction and examples on using these things f= or the normal admin functions of updating a system. > = >> The latest version of UPDATING I get is from 20130705. The web reposito= ry >> shows the latest entry as 20140716. I have used FreeBSD since 2.5.4 and >> it used to be easy to manage. Now its virtually impossible. Complete >> reinstalls on production systems are just not viable. We need a working >> way to upgrade. I haven't found it yet. > = > I have exactly zero experience with freebsd-update, and do not want to se= em = > disparaging towards the work of someone much smarter than me. I also have= a = > noted tendency to stick with what has worked well in the past and don't = > change things until either I have a really good reason or some other chan= ge = > makes trying "the new way" mandatory with no choice. Hence I still do = > upgrades along the make world/buildworld/etc dance. Generally speaking, I= 've = > been doing it this way since circa 2000 and have had almost never a probl= em = > so I stick with it. > = > Under a populated /usr/src there is a .svn subdirectory. I actually know = > very little about subversion, but I think this directory contains all the = > internal housekeeping. I've noticed before the header in many of the file= s = > I've read through all seem to contain OS version information. If you have= a = > populated /usr/src you can cd to /usr/src and do rm -rf * and this will w= ipe = > everything _except_ the .svn subdirectory. You will first need to chflags= -R = > noschg on this directory before you can rm -rf it. There is no mention of any of that in the manual=85 > = > Once wiped clean, do this: > = > svn checkout svn://svn0.us-west.FreeBSD.org/base/releng/9.3 /usr/src > = > Please note the svn:// , releng instead of release, and the space before = > /usr/src. This will pull in a fresh source tree for 9.3. To update do thi= s: > = > svn update /usr/src > = > Usually running this immediately after pulling in a fresh tree does nothi= ng, = > other than tell you you're already at the latest. If time goes by and = > security updates come out the svn update /usr/src command will pull in wh= at = > once was known as the release 'security' branch. Of course, any of this o= nly = > applies to NOT using freebsd-update. > = > One of the really neat things I do like is the revision number. You will = see = > it in uname like this: 9.3-RELEASE FreeBSD 9.3-RELEASE #0 r268715. I have = > one machine left that only has a CD burner instead of the DVD burner all = the = > others enjoy. So in order to fit a backup dump on a CD I have to delete t= he = > source tree. If at some point later I should need to pull in the source t= ree = > that matches my existing kernel I look up the revision number in uname a= nd = > do something like this: > = > svn checkout -r r268715 svn://svn0.us-west.FreeBSD.org/base/releng/9.3 = > /usr/src > = > Using the revision numbers in this fashion allows for world and kernel to = > stay in sync. Typically this is not required most of the time, but I like = > very much that the feature exists and is so easy to utilize. > = > I can't speak to the original situation where the source tree was stale a= fter = > freebsd-update. I simply just know next to nothing about freebsd-update, = > other than problems people have had with it that I've read about on the = > list. I've been steadily doing source based upgrades for 14 years and it = > works so I keep doing it that way. :-) I have been using the freebsd-update approach on several systems without is= sues till now. Some use generic kernels and then it works great. > = > -Mike > = > = > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > = _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
文章代碼(AID): #1Joa7Uvg (FB_questions)
討論串 (同標題文章)
文章代碼(AID): #1Joa7Uvg (FB_questions)