EnderUNIX Team.


EnderUNIX İpucu

Arkadaşıma gönder , Ana Sayfa

[ FreeBSD ]

"FreeBSD-6.X 'i FreeBSD-7.X 'e Guncelleme" - Metin KAYA - (2007-12-30 02:32:08)   [3100]

Oncelikle sistem yeniden baslatilir:

[metin@enderunix]# shutdown -r now

Asagidaki komutlarla FreeBSD-6.X kurulu sistemi FreeBSD-7.0-CURRENT olacak sekilde guncellenebilir:

[metin@enderunix]$ cd /; exec `/usr/bin/which bash sh | head -1`
[metin@enderunix]$ PATH=/bin:/usr/bin:/sbin:/usr/sbin; umask 022; unset TMOUT
[metin@enderunix]$ url="ftp://ftp2.tr.freebsd.org/pub/FreeBSD/ports/i386/packages-7-current/All"; ( cd /tmp; for pkg in localedata-5.4.tbz compat6x-i386-6.2.602110.200706.tbz; do fetch -p $url/$pkg; pkg_add $pkg; rm -f $pkg; done )
[metin@enderunix]$ cd /usr; fetch http://people.freebsd.org/~rse/dist/freebsd-adm-1.2.2.tar.gz; rm -rf adm; gunzip

"/usr/adm/cfg/csup.src" dosyasindaki "RELENG_6" sozcugu "RELENG_7" olarak degistirilir.

[metin@enderunix]$ (cd /usr/src && make cleandir); (cd /usr/adm && make update)

"/sys/`uname -m`/conf/`hostname -s | tr 'a-z' 'A-Z'`" dosyasina asagidaki satirlar eklenir:

options COMPAT_FREEBSD6
options SCTP # Stream Transmission Control Protocol
options UFS_GJOURNAL # Enable gjournal-based UFS
options STOP_NMI # Stop CPUS using NMI instead of IPI
options AUDIT # Security event auditing
options GEOM_LABEL # Provides labelization
options GEOM_PART_GPT # GUID Partition Tables.
options COMPAT_43TTY # BSD 4.3 TTY compat [KEEP THIS!]
device uart # Generic UART driver
device le # AMD Am7900 LANCE and Am79C9xx PCnet
device firmware # firmware assist module
device dcons # Dumb console driver
device dcons_crom # Configuration ROM for dcons


Ve ayni dosyadan asagidaki satirlar silinir:

options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!]
device lnc # NE2100, NE32-VL Lance Ethernet cards
options GEOM_GPT # GUID Partition Tables.

[metin@enderunix]$ mergemaster -p
[metin@enderunix]$ cd /usr/adm && make world-build kernel-build
[metin@enderunix]$ make world-install kernel-install
[metin@enderunix]$ rm -f /etc/rc.d/ike /etc/rc.d/pccard /etc/rc.d/pcvt /etc/rc.d/ramdisk
[metin@enderunix]$ rm -f /etc/rc.d/ramdisk-own /etc/rc.d/usbd
[metin@enderunix]$ make etc
[metin@enderunix]$ make clean

Sistem yeniden baslatilir:

[metin@enderunix]# shutdown -r now

[metin@enderunix]$ cd /; exec `/usr/bin/which bash sh | head -1`
[metin@enderunix]$ PATH=/bin:/usr/bin:/sbin:/usr/sbin; umask 022; unset TMOUT
[metin@enderunix]$ ( for dir in /bin /sbin /usr/bin /usr/sbin /usr/libexec /usr/libdata; do \
find $dir -mtime +2 -type f -xdev -print; \
find $dir -mtime +2 -type l -xdev -print; \
done ) >/tmp/remove
[metin@enderunix]$ cat /tmp/remove | xargs rm -f
[metin@enderunix]$ ( for dir in /lib /usr/lib; do \
find $dir -mtime +2 -type f -xdev -print; \
find $dir -mtime +2 -type l -xdev -print; \
done ) | grep -v /usr/lib/compat >/tmp/move
[metin@enderunix]$ for x in `cat /tmp/move`; do chflags noschg $x; mv $x /usr/lib/compat/; done
[metin@enderunix]$ cd /usr/src; make BATCH_DELETE_OLD_FILES=YES delete-old delete-old-libs

Sistem son kez yeniden baslatilir:

[metin@enderunix]# shutdown -r now

FreeBSD-7.0 kurulu sistem kullanima hazirdir.

Kaynak: http://people.freebsd.org/~rse/upgrade/freebsd-upgrade-6x-7x.txt

Arkadaşıma gönder , Ana Sayfa