$ cim help
CIM -- Common Lisp Implementation Manager
Commands currently available
install <impl[-version]> ;; Install the impl.
use <impl[-version]> ;; Use specified impl as `cl' command's backend.
resume [rm] [resume..] ;; Resume suspended installation(s) or give it up.
list <command> ;; List available target of <command>
reinstall <impl[-version]> ;; Reinstall the impl.
clean <impl>|all ;; Clean downloaded archive and src of the impl.
distclean <impl>|all ;; Clean built dists.
uninstall <impl[-version]> ;; Uninstall the impl.
purge <impl>|all ;; Just clean and uninstall the impl.
info ;; Display current state.
get ;; Upgrade cim itself.
version ;; Show the version
help <command> ;; Show help for <command>. If no commands are specified, show this help.
If you want detailed help, type `cim help <command>'.
## `cim install`
123456789101112131415161718192021
$ cim help install
Usage:
cim install <impl[-version]>
Description:
Install the given lisp implementation to cim directory.
If version is not specified, install the latest version.
If you want to pass specific options to 'configure' script,
prefix 'flags='.
Examples:
# install sbcl-1.1.14
cim install sbcl-1.1.14
# install latest clisp with option.
flags='--with-libsigsegv-prefix=/usr/local' cim install clisp
To show available lisp implementations, type 'cim list install'.
インストールします。はい。<impl[-version]>ってのはsbclとかclisp-2.48とかですね。バージョンを指定しなかったら最新版になります。cim list installでインストール可能なものを表示しますが載ってない古いバージョンとかもインストールできる筈です。多分。
Usage:
cim use <impl[-version]> [--default]
Description:
Use <impl> as background for 'cl' command. It also affects bare lisp command.
If version is not given, use latest version.
If --default is given, use the specified implementation at initial state.
Examples:
# use the latest sbcl
cim use sbcl
sbcl --version
-> SBCL 1.1.14
# use old sbcl
cim use sbcl-1.1.10
sbcl --version
-> SBCL 1.1.10
# use ccl-1.9 and set it default
cim use ccl-1.9 --default
ってやるとclコマンドがバックエンドとしてclispのバージョン2.48を使うようになりますし、clispコマンドのバージョンも2.48になります。このclispの部分はリンクを貼り替えてて、一つのシェルで変更すると他のシェルにも影響が及ぶ問題があるのでそのうち直します。これ結構面倒なのでそのうちです。
clisp = clisp-2.48な状態でcim use sbclするとclisp = clisp-2.48なままclのバックエンドがsbclになります。上手く使って下さい。
--defaultを付けると次回からのデフォルト値を指定したものにしつつcim useします。
cim resume
123456789101112131415161718
$ cim help resume
Usage:
cim resume [rm] <impl[-version]> | all
Description:
Resume interrupted installation of <impl>. If <version> is not given, the latest version is used.
If 'rm' is given, remove <impl> from 'resume' list.
If target is 'all', do on all the available target.
Examples:
# resume the installation of clisp with configure flags
flags='--with-libsigsegv-path=/usr/local' cim resume clisp
# remove all the available target.
cim resume rm all
cim resume rm sbclだとcim list resumeの結果からsbclを削除できます。resumeはしませんよ。cim resume rm allとかも可能です。
cim list
12345678910111213141516171819
$ cim help list
Usage:
cim list <subcommand>
Description:
List available target for subcommand.
Examples:
# list available lisp implementation to install
cim list install
# show available target for list
cim list list
# targets for subsubcommands are also available
cim list resume rm
$ cim help reinstall
Usage:
cim reinstall <impl[-version]> | all
Description:
Force install already installed implementaion(s). Downloaded archives are resued if available
If version is not specified, install the latest version.
If target is 'all', do on all the available targets.
Examples:
# reinstall sbcl-1.1.14
cim reinstall sbcl-1.1.14
# reinstall all installed lisp impls
cim reinstall all
To show available lisp implementations, type 'cim list reinstall'.
$ cim help clean
Usage:
cim clean <impl[-version]> | all
Description:
Remove donwloaded archives and extracted sources of the given lisp implementations.
If version is not specified, install the latest version.
If target is 'all', do on all the available targets.
Examples:
# clean sbcl-1.1.14
cim clean sbcl-1.1.14
# clean all installed lisp impls
cim clean all
To show available lisp implementations, type 'cim list clean'.
$cim help distclean
Usage:
cim distclean <impl[-version]> | all
Description:
Clean built files of the given lisp implementation. It doesn't mean uninstall.
If version is not specified, install the latest version.
If target is 'all', do on all the available targets.
Examples:
# distclean sbcl-1.1.14
cim distclean sbcl-1.1.14
# distclean all installed lisp impls
cim distclean all
To show available lisp implementations, type 'cim list distclean'.
$ cim help uninstall
Usage:
cim uninstall <impl[-version]> | all
Description:
Uninstall the given lisp implementaion(s). It does't remove donwloaded archives and extracted sources.
If version is not specified, install the latest version.
If target is 'all', do on all the available targets.
Examples:
# uninstall sbcl-1.1.14
cim uninstall sbcl-1.1.14
# uninstall all installed lisp impls
cim uninstall all
To show available lisp implementations, type 'cim list uninstall'.
アンインストールします。はい。ただしダウンロードしたアーカイブとソースは削除しません。
cim purge
12345678910111213141516
$ cim help purge
Usage:
cim purge <impl[-version]> | all
Description:
Uninstall and clean up downloaded files of the given lisp implementation.
This command is equivalent to 'clean' and 'uninstall'.
Examples:
# purge the latest sbcl
cim purge sbcl
To show available target for 'purge', type 'cim list purge'
uninstallのアーカイブとソースを削除する版です。
cim info
12345678910111213
$ cim help info
Usage:
cim info
Description:
Display information for current cim. It includes environment variables that cim uses, what current and default lisp implementation is, what version of each implementation is used, and where system lisp is.
Example:
# display info
cim info
$ cim help help
Help for 'help' is not prepared, sorry.
あー。helpのhelp用意してなかったー。まあ、上で使ったのが全てです。
cl
12345678910111213141516171819
$ cl -h
Usage: cl [switchs] [--] [programfile] [argumensts]
-C DIR set *default-pathname-defaults* DIR.
-d, --debug set debugging flags (push :debug into *features*)
-e, --eval SEXP one line of script. Several -e's are allowed. Omit [programfile]
-f, --load FILE load the FILE
-i EXT edit *argv* files in place and make backup with the extension .EXT
-l LIBRARY quickload the LIBRARY
-L LIBRARY quickload and use-package the LIBRARY
-r, --repl run repl
-q, --no-init do not load $CIM_HOME/init.lisp
--no-rl do not use rlwrap. This is effective only when --repl is specified
--no-right do not display right prompt. This is effective only when --repl is specified
--no-color do not use color. This is effective only when --repl is specified
-h, --help print this help
-v, --version print the version
If neither programfile, -e (--eval) nor -r (--repl) are specified, cl reads scripts from the standard input and then eval them.
ql -- Command line interface for quicklisp
Commands currently available
deps <system> ;; Install dependencies of <system>.
help [command] ;; Show help.
install[quickload] <system>... ;; Install given system.
list {remote | local} ;; List available/installed systems.
search[system-propos] <keyword> ;; Search quicklisp.
uninstall <system> ;; Uninstall system.
update [system] ;; Update dist info and installed systems.
一番未完成なコマンドです。主な理由は私がquicklispの使い方を分かってないからです。
ql deps
123456789101112131415
$ ql help deps
Usage:
ql deps [--path <path>] <system>
Description:
Install dependencies of given system. If path is specified, install dependencies there.
Once you run 'ql --path <path> deps', you don't need to specify '--path' because the path is written out to '.quicklisp-path' in current directory.
You can run 'ql deps' for a local system if '.asd' file is in current directory.
This command is useful when you want to separate quicklisps for local project.
Example:
ql deps --path ./quicklisp my-project
$ ql list
Usage:
ql list {remote | [local]}
Description:
List installed systems. if 'remote' is given, list all the available systems. 'ql list local' is equivalent to 'ql list'.
Example:
ql list remote
cim listと使い方が違ってアレですね。現状quicklispに登録されているもの全てを表示するql list remoteとインストールしたものだけを表示するql list [local]があります。ql depsでパスを指定したやつらにも使いたかったのですが方法が分かんないのでとりあえず先送りです。
ql search
123456789101112
$ ql help search
Usage:
ql search <keyword>
Description:
Search quicklisp for <keyword>.
Example:
ql search http