したがって、arch linux の新しいインスタンスでは、最初からインストールできるようにしたいと考えていますtzdata。
手動で行うには、これを行います:-
[root@myarch ~]# pacman -S tzdata
:: The following packages should be upgraded first :
pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] n
resolving dependencies...
looking for inter-conflicts...
Targets (1): tzdata-2012c-1
Total Download Size: 0.13 MB
Total Installed Size: 5.41 MB
Proceed with installation? [Y/n] Y
ご覧のとおり、最初に を入力しn、次に を入力する必要がありYます。
nキーを入力する必要なく、1行のbashでこれを実行するにはどうすればよいYですか?
yes n | pacman -S tzdata
最初のプロンプトを通過させます。しかし、2 番目のプロンプトで行き詰まります (明らかに)。