Showing posts with label Upgrade. Show all posts
Showing posts with label Upgrade. Show all posts

Sunday, February 27, 2011

FreeBSD Update from 7. (01234) or 8.(01)

FreeBSD Update

The freebsd-update(8) utility supports binary upgrades of i386 and amd64 systems running earlier FreeBSD releases. Systems running 7.[01234]-RELEASE, 8.[01]-RELEASE, 8.2-BETA1, or 8.2-RC[123] can upgrade as follows:

# freebsd-update upgrade -r 8.2-RELEASE

During this process, FreeBSD Update may ask the user to help by merging some configuration files or by confirming that the automatically performed merging was done correctly.

# freebsd-update install

The system must be rebooted with the newly installed kernel before continuing.

# shutdown -r now

After rebooting, freebsd-update needs to be run again to install the new userland components:

# freebsd-update install

At this point, users of systems being upgraded from FreeBSD 7.4-RELEASE or earlier will be prompted by freebsd-update to rebuild all third-party applications (e.g., ports installed from the ports tree) due to updates in system libraries.

After updating installed third-party applications (and again, only if freebsd-update printed a message indicating that this was necessary), run freebsd-update again so that it can delete the old (no longer used) system libraries:

# freebsd-update install

Finally, reboot into 8.2-RELEASE:

# shutdown -r now

** taken from FreeBSD Website

Thursday, August 19, 2010

Portupgrade

I learn something new from my sifoo

try to run portupgrade :

portupgrade /var/db/pkg/namepackage

make fetch-recursive-list

Thursday, December 3, 2009

Upgrade / updating CentOS 5.3

here some step upgrade and update for CentOS 5.3 (Work for Me!!)

# yum clean all
# yum update

# yum upgrade

# reboot

or you can upgrade your kernel using

# yum upgrade kernel

than

# reboot


updating package :
example

yum list updates {package-name}
yum list updates 'package-name*'
yum list updates '*package-name*'


or

# yum list updates 'php*'
or
# yum list updates 'kernel*'

you can currently list your installed package by using

# rpm -q kernel

do multiple

# yum list installed 'kernel*' 'php*'

or update your kernel by using

# yum update kernel.i686

than reboot your box

That All!


Upgrade FreeBSD 7.2 to 8.0 using csup

I finally did it upgrade my box from 7.2 to 8.0
here some step for you guys

1 - Edit your supfile file

# cp /usr/share/examples/cvsup/standard-supfile /root/supfile.8
# ee /root/supfile.8



find and change this line

*default host=cvsup2.jp.FreeBSD.org

and

*default release=cvs tag=RELENG_8_0

save n close this file

csup your box using this command
# csup /root/supfile.8

to build freebsd file system enter :

# cd /usr/src
# make cleanworld && make cleandir

if you have problem when you make cleanworld && make cleandir please csup using normal csup and than try back csup /root/supfile.8.

# make buildworld

after that build and install your new / custom kernel :

# make buildkernel
# make installkernel


after finish REBOOT your box and at bootloader section please choose 4 (single mode) to finish the upgrade.


after you login as a single user you will get something like this (/sbin/sh). For me i use this :


csh


than mount

# mount -a -t ufs

and after that run mergemaster

# mergemaster -p


WARNING !!!
Be careful with /etc/passwd, /etc/group and other files in base system. Verify each file before installing new version or merging exiting configuration files.

than you need to install FreeBSD Base System

# cd /usr/src
# make installworld

after finish run :

# mergemaster -i

WARNING !!!
Be careful with /etc/passwd, /etc/group and other files in base system. Verify each file before installing new version or merging exiting configuration files.

after finish reboot your system

after finish start you box as usual. Please check your status :

# uname -a
# tail -f /var/log/messages

than upgrade your ports :

# portsnap fetch update
# vi /usr/ports/UPDATING
# portmaster -Da

than your box is up to date!

Thanks to nixcraft for the great article!

Thursday, June 18, 2009

Mergemaster Problem (FreeBsd 7.0 to 7.2)

after i doing mergemaster i can't login as user to root privileges.
mergemaster have change all my /etc/group

if this happen to you run this as root

pw usermod username -Gwheel