Rebuild World?

Discussion in 'Linux & BSD' started by Dark Atheist, Nov 13, 2008.

  1. Dark Atheist

    Dark Atheist Moderator Political User Folding Team

    Messages:
    6,376
    Location:
    In The Void
  2. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    I normally do a world/kernel build this way

    Code:
    # cd /usr/src
    # make buildworld
    # make buildkernel KERNCONF=KERNEL_CONF_FILE
    # make installkernel KERNCONF=KERNEL_CONF_FILE
    # shutdown -r now
    boot into single user mode

    Code:
    # fsck -p
    # mount -u /
    # mount -a -t ufs
    # swapon -a
    # export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
    # mergemaster -p
    # cd /usr/src
    # make installworld
    # mergemaster
    # shutdown -r now
    as for when you should do it, well if you're upgrading from one version to another you should do it, or if you're updating for a security fix and it recommends doing a kernel and world update.
     
  3. Dark Atheist

    Dark Atheist Moderator Political User Folding Team

    Messages:
    6,376
    Location:
    In The Void
    thanks geffy - one other question if i was to use csup -g -L2 -h cvsup.freebsd.org /usr/share/examples/cvsup/standard-supfile and get all the src files and did make buildworld, would that update all the installed base packages

    eg update openssl from 0.9.8d to 0.9.8i ? as i have installed openssl from prts but the version still shows 0.9.8d
     
  4. LordOfLA

    LordOfLA Godlike!

    Messages:
    7,027
    Location:
    Maidenhead, Berkshire, UK
    it would update your freebsd system to the latest source build :)

    See the port options for how to overwrite the base install.
     
  5. Dark Atheist

    Dark Atheist Moderator Political User Folding Team

    Messages:
    6,376
    Location:
    In The Void
    thanks lord - i think thats required reading best done in the morning :) - would that be in the handbook or the portsnap dir ?
     
  6. LordOfLA

    LordOfLA Godlike!

    Messages:
    7,027
    Location:
    Maidenhead, Berkshire, UK
    the port makefile :)
     
  7. Dark Atheist

    Dark Atheist Moderator Political User Folding Team

    Messages:
    6,376
    Location:
    In The Void
    i did look there but didn't see the install dir - guess i over looked it :)
     
  8. LordOfLA

    LordOfLA Godlike!

    Messages:
    7,027
    Location:
    Maidenhead, Berkshire, UK
    It's probably in one of the higher level make files that drive the ports system then.