Обновление с помощью freebsd-update — различия между версиями

Материал из megapuper
Перейти к: навигация, поиск
(Новая страница: «Обновление FreeBSD 9.1 до 10.0-RELEASE при помощи freebsd-update Текущая версия(последняя на тот момент). …»)
 
Строка 2: Строка 2:
  
  
Текущая версия(последняя на тот момент).
+
Текущая версия
  FreeBSD freebsd 9.1-RELEASE-p10 FreeBSD 9.1-RELEASE-p10 #0: Sun Jan 12 10:32:09 UTC 2014     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
+
# uname -a
Если версия системы не последняя в ветке, то сначал придётся обновиться до неё.
+
  FreeBSD freebsd 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0: Mon Jun 17 11:38:17 UTC 2013     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
  
  
 
Запускаем обновление
 
Запускаем обновление
 
  # freebsd-update upgrade -r 10.0-RELEASE
 
  # freebsd-update upgrade -r 10.0-RELEASE
 +
 
  Looking up update.FreeBSD.org mirrors... 5 mirrors found.
 
  Looking up update.FreeBSD.org mirrors... 5 mirrors found.
 
  Fetching metadata signature for 9.1-RELEASE from update2.freebsd.org... done.
 
  Fetching metadata signature for 9.1-RELEASE from update2.freebsd.org... done.
Строка 17: Строка 18:
 
  The following components of FreeBSD seem to be installed:
 
  The following components of FreeBSD seem to be installed:
 
  kernel/generic src/src world/base world/lib32
 
  kernel/generic src/src world/base world/lib32
 
 
 
При установке не ставились документация и игры, freebsd-update уточняет этот момент
 
При установке не ставились документация и игры, freebsd-update уточняет этот момент
 
  The following components of FreeBSD do not seem to be installed:
 
  The following components of FreeBSD do not seem to be installed:
Строка 32: Строка 31:
  
  
Looking up update.FreeBSD.org mirrors... 5 mirrors found.
+
Упс. Придётся обновить до последней версии
Fetching metadata signature for 9.1-RELEASE from update6.freebsd.org... done.
+
# freebsd-update fetch install
Fetching metadata index... done.
+
Inspecting system... done.
+
Looking up update.FreeBSD.org mirrors... 5 mirrors found.
The following components of FreeBSD seem to be installed:
+
Fetching metadata signature for 9.1-RELEASE from update6.freebsd.org... done.
kernel/generic src/src world/base world/lib32
+
Fetching metadata index... done.
The following components of FreeBSD do not seem to be installed:
+
Fetching 1 metadata patches. done.
world/doc world/games
+
Applying metadata patches... done.
Does this look reasonable (y/n)? y
+
Inspecting system... done.
Fetching metadata signature for 10.0-RELEASE from update6.freebsd.org... done.
+
Preparing to download files... done.
Fetching metadata index... done.
+
Fetching 56 patches.....10....20....30....40....50... done.
Inspecting system... done.
+
Applying patches... done.
Fetching files from 9.1-RELEASE for merging... done.
+
 
Preparing to download files...
+
The following files will be updated as part of updating to 9.1-RELEASE-p10:
 +
/boot/kernel/kernel
 +
/boot/kernel/kernel.symbols
 +
/boot/kernel/mfi.ko
 +
/boot/kernel/mfi.ko.symbols
 +
/boot/kernel/mfip.ko
 +
/boot/kernel/mfip.ko.symbols
 +
/boot/kernel/nullfs.ko
 +
/boot/kernel/nullfs.ko.symbols
 +
/boot/kernel/random.ko
 +
..............
 +
Installing updates... done.
 +
 
 +
 
 +
Перегружаемся и проверяем
 +
# reboot
 +
 +
# uname -a
 +
FreeBSD freebsd 9.1-RELEASE-p10 FreeBSD 9.1-RELEASE-p10 #0: Sun Jan 12 10:32:09 UTC 2014    root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
 +
 
 +
 
 +
Снова запускаем апгрейд до 10.0-RELEASE
 +
# freebsd-update upgrade -r 10.0-RELEASE
 +
 +
Looking up update.FreeBSD.org mirrors... 5 mirrors found.
 +
Fetching metadata signature for 9.1-RELEASE from update4.freebsd.org... done.
 +
Fetching metadata index... done.
 +
Inspecting system... done.
 +
 +
The following components of FreeBSD seem to be installed:
 +
kernel/generic src/src world/base
 +
 +
The following components of FreeBSD do not seem to be installed:
 +
world/doc world/games
 +
 +
Does this look reasonable (y/n)? y
 +
Fetching metadata signature for 10.0-RELEASE from update4.freebsd.org... done.
 +
Fetching metadata index... done.
 +
Inspecting system... done.
 +
Fetching files from 9.1-RELEASE for merging... done.
 +
Preparing to download files...
 +
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
  
  
  
FreeBSD freebsd 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Fri Jan 17 01:46:25 UTC 2014    root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  i386
+
# uname -a
 +
FreeBSD freebsd 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Fri Jan 17 01:46:25 UTC 2014    root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  i386

Версия 15:04, 8 апреля 2014

Обновление FreeBSD 9.1 до 10.0-RELEASE при помощи freebsd-update


Текущая версия

# uname -a
FreeBSD freebsd 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0: Mon Jun 17 11:38:17 UTC 2013     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386


Запускаем обновление

# freebsd-update upgrade -r 10.0-RELEASE

Looking up update.FreeBSD.org mirrors... 5 mirrors found.
Fetching metadata signature for 9.1-RELEASE from update2.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata patches.. done.
Applying metadata patches... done.
Inspecting system...
The following components of FreeBSD seem to be installed:
kernel/generic src/src world/base world/lib32

При установке не ставились документация и игры, freebsd-update уточняет этот момент

The following components of FreeBSD do not seem to be installed:
world/doc world/games
Does this look reasonable (y/n)? y
Fetching metadata signature for 10.0-RELEASE from update2.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files...
The update metadata is correctly signed, but failed an integrity check.
Cowardly refusing to proceed any further.


Упс. Придётся обновить до последней версии

# freebsd-update fetch install

Looking up update.FreeBSD.org mirrors... 5 mirrors found.
Fetching metadata signature for 9.1-RELEASE from update6.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 56 patches.....10....20....30....40....50... done.
Applying patches... done.
 
The following files will be updated as part of updating to 9.1-RELEASE-p10:
/boot/kernel/kernel
/boot/kernel/kernel.symbols
/boot/kernel/mfi.ko
/boot/kernel/mfi.ko.symbols
/boot/kernel/mfip.ko
/boot/kernel/mfip.ko.symbols
/boot/kernel/nullfs.ko
/boot/kernel/nullfs.ko.symbols
/boot/kernel/random.ko
..............
Installing updates... done.


Перегружаемся и проверяем

# reboot

# uname -a
FreeBSD freebsd 9.1-RELEASE-p10 FreeBSD 9.1-RELEASE-p10 #0: Sun Jan 12 10:32:09 UTC 2014     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386


Снова запускаем апгрейд до 10.0-RELEASE

# freebsd-update upgrade -r 10.0-RELEASE

Looking up update.FreeBSD.org mirrors... 5 mirrors found.
Fetching metadata signature for 9.1-RELEASE from update4.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
kernel/generic src/src world/base

The following components of FreeBSD do not seem to be installed:
world/doc world/games

Does this look reasonable (y/n)? y
Fetching metadata signature for 10.0-RELEASE from update4.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.
Fetching files from 9.1-RELEASE for merging... done.
Preparing to download files...






# uname -a
FreeBSD freebsd 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Fri Jan 17 01:46:25 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  i386