squ*_*org 5 upgrade do-release-upgrade
有谁知道do-release-upgrade -q实际上是什么?
希望它可以在不需要与之交互的情况下进行升级,如果是这种情况,它会覆盖配置还是保留原始配置?或者它会做其他事情吗?
stephenm@mcr-pc-29392:~$ do-release-upgrade --help
Usage: do-release-upgrade [options]
Options:
-h, --help show this help message and exit
-V, --version Show version and exit
-d, --devel-release Check if upgrading to the latest devel release is
possible
--data-dir=DATA_DIR Directory that contains the data files
-p, --proposed Try upgrading to the latest release using the upgrader
from $distro-proposed
-m MODE, --mode=MODE Run in a special upgrade mode. Currently 'desktop' for
regular upgrades of a desktop system and 'server' for
server systems are supported.
-f FRONTEND, --frontend=FRONTEND
Run the specified frontend
-s, --sandbox Test upgrade with a sandbox aufs overlay
-c, --check-dist-upgrade-only
Check only if a new distribution release is available
and report the result via the exit code
-q, --quiet
Run Code Online (Sandbox Code Playgroud)
手册页甚至没有提到它。
DO-RELEASE-UPGRADE(8) DO-RELEASE-UPGRADE(8)
NAME
do-release-upgrade - upgrade operating system to latest release
SYNOPSIS
do-release-upgrade [options]
DESCRIPTION
Upgrade the operating system to the latest release from the command-line. This is the preferred command if the machine has no
graphic environment or if the machine is to be upgraded over a remote connection.
OPTIONS
-h, --help
show help message and exit
-d, --devel-release
Check if upgrading to the latest devel release is possible
-p, --proposed
Try upgrading to the latest release using the upgrader from Ubuntu-proposed
-m MODE, --mode=MODE
Run in a special upgrade mode. Currently "desktop" for regular upgrades of a desktop system and "server" for server systems
are supported.
-f FRONTEND, --frontend=FRONTEND
Run the specified frontend
-s, --sandbox
Test upgrade with a sandbox aufs overlay
SEE ALSO
update-manager(8), apt-get(8)
Run Code Online (Sandbox Code Playgroud)
好吧,我通过测试对此进行了研究,我安装了虚拟 Ubuntu 10.04 编辑了一些配置文件并运行了 do-release-upgrade -q,
它的运行完全一样,我有关于 mysql 密码和修改配置的所有相同问题需要回答。
这促使我查看代码以弄清楚它到底做了什么。do-release-upgrade 的代码在这里
仔细看一下,使用该选项似乎-q只是忽略了一点点输出。
据我所知,这是它唯一省略的内容。
if not options.quiet:
print _("Checking for a new ubuntu release")
Run Code Online (Sandbox Code Playgroud)
..
if not options.quiet:
print _("No new release found")
Run Code Online (Sandbox Code Playgroud)
...
if not options.quiet:
print _("Release upgrade not possible right now")
print _("The release upgrade can not be performed currently, "
"please try again later. The server reported: '%s'") % m.new_dist.upgrade_broken
sys.exit(NO_RELEASE_AVAILABLE)
Run Code Online (Sandbox Code Playgroud)
看起来除了省略上面的输出之外什么也没做,至少可以说,在升级输出的宏伟计划中,这只是很小的输出。
| 归档时间: |
|
| 查看次数: |
2261 次 |
| 最近记录: |