|
FreeBSD Installation and Upgrading Installing and upgrading FreeBSD. |
|
Thread Tools | Display Modes |
|
|||
Updating FreeBSD and Building a Custom Kernel
Please Help me. I am a noob when it comes to the *BSD's and I installed
FreeBSD on several of my Machines and I wanted to update the Operating System but I have no idea . I tried using a guide on BSDGuides but it didn't really help me. Could somebody explain to me how to update my existing FreeBSD OS. Also can anybody give a link to a guide to building a custom kernel. Thanks for the advice John |
|
|||
custom kernel http://www.freebsd.org/doc/en_US.ISO...nelconfig.html
more or less: grab the src using cvsup edit kernel config file #cd /usr/src #make buildkernel KERNCONF=MYKERNEL # make installkernel KERNCONF=MYKERNEL Updating your system: http://www.freebsd.org/doc/en_US.ISO...makeworld.html cut it short for ya: use cvsup to get the updated sources read /usr/src/UPDATING to see if you need to do anything special for the upgrade # cd /usr/src # make buildworld # make buildkernel # make installkernel # reboot # mergemaster -p # cd /usr/src # make installworld # mergemaster # reboot Even though it's probably obvious i'm going to point out that freebsd is an OS not just a kernel ( like linux ) hence, you need to keep the userland and kernel in sync. ie. do NOT install an updated kernel without updating the userland and vice versa
__________________
"No, that's wrong, Cartman. But don't worry, there are no stupid answers, just stupid people." -- Mr. Garrison Forum Netiquette |
|
|||
Quote:
Code:
# make KERNCONF=MYKERNEL kernel Even so, it isn't a bad idea to do this first: Code:
# cp -Rp /boot/kernel /boot/kernel.good |
|
|||
For system updating I use:
cd /boot/ ; cp -Rp kernel kernel.good ; cd /usr/src ; cvsup -gL2 /usr/share/examples/cvsup/standard-supfile ; make -j4 buildworld ; make buildkernel ; make installkernel ; make installworld; mergermaster ; reboot |
|
|||
Installing and Upgrading FreeBSD
Thanks everybody
I have updated everything I owe everybody a favor |
|
||||
I have this section in my make.conf that pertains to updating:
Code:
SUP_UPDATE= yes SUPHOST= cvsup3.us.freebsd.org SUP= /usr/bin/csup SUPFILE= /usr/share/examples/cvsup/stable-supfile PORTSSUPFILE= /usr/share/examples/cvsup/ports-supfile Code:
make update Code:
KERNCONF= STARBOX_KERNEL Code:
cd /usr/src make buildworld # I use -j20 make buildkernel make installkernel mergemaster -p make installworld megemaster
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity." MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE) |
|
||||
Quote:
--> people should copy it to something else like kernel.GENERIC Quote:
I don't know about you, but I don't like reaching for a boot disk!!!! I've never had a kernel that *compiled* and failed to work correctly but as I always say.... "If curiosity killed the cat, paranoia saved its ninth life". I doubt it's possible to get royally screwed but better safe then sorrier.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
||||
The easier method, which doesn't require nearly as much time compiling things: freebsd-update(8) in conjunction with portmaster(8) or even portupgrade(1) (in conjunction with the -P option to use binary packages).
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Updating FreeBSD | carpman | FreeBSD Installation and Upgrading | 6 | 26th October 2008 11:49 AM |
Updating FreeBSD Jails after rebuilding world on host | anomie | Guides | 0 | 10th September 2008 03:23 AM |
FreeBSD 7.0 kernel building... | daemonFromHeaven | FreeBSD Installation and Upgrading | 4 | 3rd September 2008 02:42 PM |
Unable to build custom kernel [Wrong configuration?] | jrick | FreeBSD General | 3 | 31st July 2008 01:53 PM |
Utility to make FreeBSD custom ISO | mtx | FreeBSD General | 5 | 9th June 2008 11:13 PM |