Scalaをアンインストールできない

Scalaをアンインストールできない

cs setupScala の Web サイトで説明されているとおりにScala をインストールしました。https://www.scala-lang.org/download/

何らかの理由でアンインストールできなくなりました。試してみましたsudo apt-get purge scalaが、sudo apt-get remove scala「パッケージ 'scala' はインストールされていないため、削除されません」と出力されるだけです。ただし、コマンドはscalaまだ動作しています。

scala をアンインストールするにはどうすればいいですか?

答え1

リンク先の説明書には、

cs setupScala をインストールするには、 Coursier が提供する Scala インストーラーを使用することをお勧めします。

同じcsプログラムを使用して、国連ソフトウェアをインストールします - 組み込みのヘルプを呼び出すことで確認できます。

$ ./cs --help
Usage: ./cs <COMMAND>
Coursier is the Scala application and artifact manager.
It can install Scala applications and setup your Scala development environment.
It can also download and cache artifacts from the web.

Install application commands:
  install    Install an application from its descriptor.
  list       List all currently installed applications.
  setup      Setup a machine for Scala development.
  uninstall  Uninstall one or more applications.
  update     Update one or more applications.

Application channel commands:
  channel  Manage additional channels, used by coursier to resolve application descriptors.
  search   Search application names from known channels.

Java commands:
  java       Manage installed JVMs and run java.
  java-home  Print the home directory of a particular JVM.

Launcher commands:
  bootstrap  Create a binary launcher from a dependency or an application descriptor.
  launch     Launch an application from a dependency or an application descriptor.

Resolution commands:
  fetch    Transitively fetch the JARs of one or more dependencies or an application.
  resolve  Resolve and print the transitive dependencies of one or more dependencies or an application.

Other commands:
  version  Prints the coursier version

そして

$ ./cs uninstall --help
Usage: ./cs uninstall [options] [app-name*]
Uninstall one or more applications.
The given name must be the application executable name, which may differ from the descriptor name.

Examples:
$ cs uninstall amm
$ cs uninstall bloop scalafix
$ cs uninstall --all

Help options:
  --usage                                        Print usage and exit
  -h, -help, --help                              Print help message and exit
  -help-full, -full-help, --help-full, --full-help  Print help message, including hidden options, and exit

Uninstall options:
  --dir, --install-dir string?
  --all
  -q, --quiet                   Quiet output
  -v, --verbose                 Increase verbosity (specify several times to increase more)

詳細については、アンインストールのセクションコーシエドキュメント

関連情報