CoreOSにNanoをインストールする方法はありますか?

CoreOSにNanoをインストールする方法はありますか?

CoreOSにはパッケージマネージャは含まれていませんが、私が好むテキストエディタはnanonotviまたはですvim。この問題を解決する方法はありますか?

gcc使用できないため、ソースからコンパイルできません。

core@core-01 ~/nano-2.4.1 $ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether make supports nested variables... no
checking for style of include used by make... none
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/core/nano-2.4.1':
configure: error: no acceptable C compiler found in $PATH

これを文脈に合わせるために、私は以下を見ています。このガイド私が使用したいと思ったときnano

ベストアンサー1

CoreOSコンピュータでこれを行うには、次のヒントに従ってください。ここに案内:

  1. CoreOSボックスを起動してcoreユーザーとして接続する
  2. /bin/toolboxデフォルトのFedoraコンテナにコマンドを実行します。
  3. 必要なソフトウェアをインストールしてください。この場合、nanoをインストールするには、aを実行するのと同じくらい簡単ですdnf -y install nano(dnfがyumを置き換えました)。
  4. nanoを使ってファイルを編集します。 「しかし、待ってください。私はコンテナの中にいます!」心配しないでください。ホストのファイルシステムは/media/rootコンテナ内にマウントされています。したがって、サンプルテキストファイルを保存し、コンテナに/media/root/home/core/test.txt保存し、最後に。 test.txtファイルが表示されますか?exit/home/core

この部分があまりにも秘密であるか混乱している場合は、次の質問をしてください。 :-)

最近のCoreOS 47.83.202103292105-0では、ホスト/host/media/root

おすすめ記事