LoginSignup
21
16

More than 5 years have passed since last update.

Julia Pkg modeの操作

Last updated at Posted at 2018-12-11

Julia: ver.1.0.2
参考:
- julia 0.6からjulia 1.0への移行
- 公式ドキュメント/ Standard Library / Pkg

Pkg modeとは

version1.0から新たに導入された.
juliaモード(julia>となっている状態)で]を入力すると(v1.0) pkg>に変化する.

終了方法

deleteキーを押すだけ.(これ調べるのに時間かかった笑)

コマンド

help

これを見れば,大体解決する.

(v1.0) pkg> help
  Welcome to the Pkg REPL-mode. To return to the julia> prompt, either press
  backspace when the input line is empty or press Ctrl+C.

  Synopsis

  pkg> cmd [opts] [args]

  Multiple commands can be given on the same line by interleaving a ; between
  the commands.

  Commands

  activate: set the primary environment the package manager manipulates

  add: add packages to project

  build: run the build script for packages

  develop: clone the full package repo locally for development

  free: undoes a pin, develop, or stops tracking a repo

  gc: garbage collect packages not used for a significant time

  generate: generate files for a new project

  help: show this message

  instantiate: downloads all the dependencies for the project

  pin: pins the version of packages

  precompile: precompile all the project dependencies

  preview: previews a subsequent command without affecting the current state

  remove: remove packages from project or manifest

  resolve: resolves to update the manifest from changes in dependencies of
  developed packages

  status: summarize contents of and changes to environment

  test: run tests for packages

  update: update packages in manifest

add

複数個もOK

(v1.0) pkg> add Example1 Example2 Example3

URLでもOK

(v1.0) pkg> add https://github.com/JuliaLang/Example.jl

各Packageのversionを確認したい時: status

(v1.0) pkg> status

特定のPackageのversionはどうやって確認できるのだろうか??

21
16
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
21
16