action08 发表于 2015-03-07 14:17

如何对fb做跨版本升级9->10

本帖最后由 action08 于 2015-03-07 14:20 编辑

目前系统很干净,只用pkg安装了一个包nano curlroot@localhost:~ #
root@localhost:~ #
root@localhost:~ # freebsd-update upgrade -r
usage: freebsd-update command ...

Options:
-b basedir   -- Operate on a system mounted at basedir
                  (default: /)
-d workdir   -- Store working files in workdir
                  (default: /var/db/freebsd-update/)
-f conffile-- Read configuration options from conffile
                  (default: /etc/freebsd-update.conf)
-k KEY       -- Trust an RSA key with SHA256 hash of KEY
-r release   -- Target for upgrade (e.g., 6.2-RELEASE)
-s server    -- Server from which to fetch updates
                  (default: update.FreeBSD.org)
-t address   -- Mail output of cron command, if any, to address
                  (default: root)
Commands:
fetch      -- Fetch updates from server
cron         -- Sleep rand(3600) seconds, fetch updates, and send an
                  email if updates were found
upgrade      -- Fetch upgrades to FreeBSD version specified via -r option
install      -- Install downloaded updates or upgrades
rollback   -- Uninstall most recently installed updates
IDS          -- Compare the system against an index of "known good" files.
root@localhost:~ #
root@localhost:~ #

action08 发表于 2015-03-07 14:22

root@localhost:~ #
root@localhost:~ #
root@localhost:~ # freebsd-update upgrade -r 10.1-RELEASE
Looking up update.FreeBSD.org mirrors... 5 mirrors found.
Fetching metadata signature for 9.3-RELEASE from update5.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata files... done.
Inspecting system... done.

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

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

Does this look reasonable (y/n)? y

Fetching metadata signature for 10.1-RELEASE from update5.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system...
我是实时在线操作练习到,大家有空的可以来交流玩玩

action08 发表于 2015-03-07 14:52

https://www.freebsd.org/releases/10.1R/installation.html#upgrade
这个是官方的文档,我当前使用的纯数字版本貌似也可以freebsd-update upgrade -r 10.1

action08 发表于 2015-03-08 12:15

今天升级好了,出了一个问题root@localhost:~ #
root@localhost:~ # curl -h
Shared object "libssl.so.6" not found, required by "curl"
root@localhost:~ #
root@localhost:~ # id
uid=0(root) gid=0(wheel) groups=0(wheel),5(operator)
root@localhost:~ #
root@localhost:~ # uname -a
FreeBSD localhost 10.1-RELEASE-p6 FreeBSD 10.1-RELEASE-p6 #0: Tue Feb 24 18:57:59 UTC 2015   root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERICi386
root@localhost:~ #
root@localhost:~ #

lsstarboy 发表于 2015-03-08 14:45

很多新手直接忽略了第二遍freebsd-update install,实际上有时需要进行三次install才行。

action08 发表于 2015-03-08 15:06

lsstarboy 发表于 2015-03-08 14:45 static/image/common/back.gif
很多新手直接忽略了第二遍freebsd-update install,实际上有时需要进行三次install才行。

貌似ports和pkg安装的程序需要自己手动维护一下吧

freebsd-update install这个只管系统自己的,我也是根据鸟语指示来的,然后就出现这个了

lsstarboy 发表于 2015-03-08 15:09

第三方程序需要手动安装,你可以ldd curl一下看看到底丢到哪儿去了。

bapu 发表于 2015-03-09 10:50

回复 4# action08

装这个sysutils/bsdadminscripts

然后pkg_libchk -q | xargs -o portupgrade -fu

看一下什么需要升级


   

action08 发表于 2015-03-09 12:11

本帖最后由 action08 于 2015-03-09 12:15 编辑

bapu 发表于 2015-03-09 10:50 static/image/common/back.gif
回复 4# action08

装这个sysutils/bsdadminscripts


谢谢,这个问题已经忽略了。不清楚,已换全新fb10,我就不尝试了

missdeer 发表于 2015-03-19 21:31

反正我是升不成功,不少依赖的版本搞坏了
页: [1] 2
查看完整版本: 如何对fb做跨版本升级9->10