1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Manual FreeBSD binary upgrade from cd distribution (no freebsd-update).

Discussion in 'Installing and Upgrading FreeBSD' started by dareni, Mar 25, 2011.

  1. dareni

    dareni New Member

    Messages:
    11
    Thanks Received:
    0
    Hi,

    Is this procedure complete for a manual binary upgrade from cdrom?

    Thanks,

    Daren.

    Assume no ports installed and /cdrom contains the new distribution.

    1. Backup /etc of the target installation.
    2. Boot from the distribution cdrom and run the shell.
    3. Mount the filesystems of the target installation under /mnt.
    4. Set DESTDIR to /mnt.
    5. In /cdrom/x.x-RELEASE run install.sh for base, kernels, manpages.
    6. Use the /cdrom/x.x-RELEASE/ base.mtree kernels.mtree manpages.mtree to
    locate obsolete files and remove.
    7. Merge the old etc with the new etc.
    8. Reboot.
     
  2. izotov

    izotov New Member

    Messages:
    118
    Thanks Received:
    6
    This seem to work. But if base, kernels, and man distributions are installed only and you have the GENERIC kernel only. This basically means that everything that is customized on your system is in /etc. Otherwise backup everything on /home.

    You did say nothing about your partitions but if you use separate partitions for /, /usr, /var (default) then you need to mount them properly under /mnt (/ -> /mnt, /usr -> /mnt/usr, /var -> /mnt/var).
     
  3. gkontos

    gkontos Active Member

    Messages:
    1,395
    Thanks Received:
    246
    @dareni,

    have a look at the UPGRADE section in the release notes of 8.2-Release.
     
  4. dareni

    dareni New Member

    Messages:
    11
    Thanks Received:
    0
    Thanks for the replies. Yes the installation is stock. I noticed the sysinstall binary upgrade option does not seem to remove obsolete files. Before installing base run:
    Code:
    chflag -R noschg /mnt

    If /etc/master.passwd is changed on the merge run:
    Code:
    pwd_mkdb /etc/master.passwd