← 返回命令列表

Linux command

raco 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Install package

raco pkg install [package-name]

Update packages

raco pkg update

Remove package

raco pkg remove [package-name]

Show installed packages

raco pkg show

Create executable

raco exe [program.rkt]

Run tests

raco test [file.rkt]

Build documentation

raco docs

Make distribution

raco distribute [dir] [executable]

说明

raco is Racket's command-line tool for managing packages and building programs. Package management installs from the Racket package catalog. Dependencies are resolved automatically. Executable creation compiles Racket programs. Standalone binaries include runtime. Testing runs unit tests in source files. Test submodules are discovered automatically. Documentation generation builds HTML docs. Scribble documentation is compiled. Distribution bundles executables with dependencies. Creates portable packages.

参数

pkg
Package management.
exe
Create executable.
test
Run tests.
docs
Documentation.
setup
Setup collections.
distribute
Create distribution.
make
Compile files.
check-requires
Check dependencies.

FAQ

What is the raco command used for?

raco is Racket's command-line tool for managing packages and building programs. Package management installs from the Racket package catalog. Dependencies are resolved automatically. Executable creation compiles Racket programs. Standalone binaries include runtime. Testing runs unit tests in source files. Test submodules are discovered automatically. Documentation generation builds HTML docs. Scribble documentation is compiled. Distribution bundles executables with dependencies. Creates portable packages.

How do I run a basic raco example?

Run `raco pkg install [package-name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does pkg do in raco?

Package management.