手册页状态:
-e, --command=STRING
Execute the argument to this option inside the terminal.
-x, --execute
Execute the remainder of the command line inside the terminal.
Run Code Online (Sandbox Code Playgroud)
第二个例子中的“命令行”指的是什么?它的“剩余部分”是什么?您能否举例说明这两个选项的不同之处?或者它们基本相同?
我想弄清楚为什么没有apt-get
检测到较新版本的chromium-browser
.
这是在 Ubuntu 16.04.3 LTS 上。
首先,这是输出sudo apt update
:
Hit:1 http://lu.archive.ubuntu.com/ubuntu xenial InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Run Code Online (Sandbox Code Playgroud)
这是输出apt-cache policy chromium-browser
:
chromium-browser:
Installed: 73.0.3683.86-0ubuntu0.16.04.1
Candidate: 73.0.3683.86-0ubuntu0.16.04.1
Version table:
*** 73.0.3683.86-0ubuntu0.16.04.1 100
100 /var/lib/dpkg/status
49.0.2623.108-0ubuntu1.1233 500
500 http://lu.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Run Code Online (Sandbox Code Playgroud)
它显示我安装的版本73
是最新的并且它匹配候选版本,所以它不会更新任何东西。
如果我尝试使用 模拟安装apt-get install -s chromium-browser
,我会得到:
chromium-browser is already the newest version (73.0.3683.86-0ubuntu0.16.04.1).
0 upgraded, 0 …
Run Code Online (Sandbox Code Playgroud)