# Install grex with Cargo

grex generates regular expressions from user-provided test cases. Version 1.4.6 via Cargo; verified 2025-11-14. Also installable with nix: nix profile install nixpkgs#grex.

## Install

```sh
sudo av install cargo:grex
```

Additional install commands:

### Portable and language managers

- Cargo (100%):

```sh
cargo install grex
```

  Evidence: local crates.io package metadata

## Package facts

- **Package key:** cargo:grex
- **Package manager:** Cargo
- **Package manager page:** <https://crates.io/crates/grex>
- **Version:** 1.4.6
- **Source summary:** grex generates regular expressions from user-provided test cases.
- **Homepage:** <https://github.com/pemistahl/grex>
- **Repository:** <https://github.com/pemistahl/grex>
- **Upstream docs:** <https://docs.rs/grex>
- **License:** Apache-2.0
- **Source archive:** <https://static.crates.io/crates/grex/grex-1.4.6.crate>
- **Published:** 2025-11-14 12:27:24.200552+00
- **Last updated:** 2025-11-14 12:27:24.200552+00
- **Generated:** 2026-09-19T06:45:57+00:00

## Executables

- grex (binary): Declared by crates.io version metadata.

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-09-19
- Package-manager version: 1.4.6

## Security Notes

No matching local secret-handling manifest was found for grex. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** crates.io database dump
- **Crate ID:** 170,166
- **Crate Size:** 640,654
- **Edition:** 2021
- **Executable Intent:** Intent: public_cli, Signals: archive contains src/main.rs, binary name matches crate name
- **Has Lib:** yes
- **Num Versions:** 16
- **Recent Download Window Days:** 90
- **Version ID:** 1,825,069

## Other Package-Manager Records

- Nix - grex: normalized package name match | nixpkgs package indexes: pkgs/by-name/gr/grex/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - grex - 1.4.6-2: normalized package name match | Arch Linux sync databases: grex from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A command-line tool for generating regular expressions from user-provided input strings | https://github.com/pemistahl/grex
- zypper - grex - 1.4.6-1.4: normalized package name match | openSUSE Tumbleweed package metadata: grex from https://download.opensuse.org/tumbleweed/repo/oss/repodata/d310d5a96106e1e8872a385adf98aaa23be9db5d80937a6717314e7e7f37715065c6c748ab7ccee6475d620b46979c0fe64235fc0c46988e17edf659578fcf31-primary.xml.zst | CLI regex generator | https://github.com/pemistahl/grex
- MacPorts - grex: normalized package name match | MacPorts ports tree: textproc/grex/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/grex: normalized package name match | Scoop official bucket manifest trees: bucket/grex.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Related links

- [grex](https://pkg.so/brew/grex/) - Same normalized package name exists in another local package ecosystem.

## Sources

- crates.io package index
- external package-manager database matches
- cross-ecosystem install command graph
