Files
radaree2/INSTALL.md

74 lines
2.0 KiB
Markdown
Raw Permalink Normal View History

2025-08-04 21:05:34 +02:00
# Installation Guide
2021-05-24 23:25:11 +02:00
2025-08-04 21:05:34 +02:00
To get the latest packaged versions of Radare2, visit the [Releases page](https://github.com/radareorg/radare2/releases). For most users, installing directly from the Git repository is recommended to ensure you have the most recent features and updates.
2021-05-24 23:25:11 +02:00
2025-08-04 21:05:34 +02:00
## Recommended Installation Method
For a system-wide installation using source code, execute the `sys/install.sh` script. This will compile Radare2 and set up symlinks for global usage.
1. **Clone the Repository**
2021-05-24 23:25:11 +02:00
```sh
2021-05-24 23:25:11 +02:00
git clone https://github.com/radareorg/radare2
```
2025-08-04 21:05:34 +02:00
2. **Run the Installation Script**
2021-05-24 23:25:11 +02:00
2025-08-04 21:05:34 +02:00
```sh
radare2/sys/install.sh
```
2021-05-24 23:25:11 +02:00
2025-08-04 21:05:34 +02:00
## Alternative Installation Options
2021-05-24 23:25:11 +02:00
2025-08-04 21:05:34 +02:00
- **User Directory Installation**: If you prefer to install Radare2 in your home directory, use the `sys/user.sh` script.
- **Manage Multiple Installations**: Utilize [r2env](https://github.com/radareorg/r2env) to handle multiple Radare2 versions on the same machine. It can be installed via Python's `pip` tool.
2021-05-24 23:25:11 +02:00
```sh
2021-05-24 23:25:11 +02:00
pip install r2env
r2env init
2022-01-06 11:05:42 -06:00
r2env add radare2@git
2021-05-24 23:25:11 +02:00
```
2025-08-04 21:05:34 +02:00
## Building Flexibility
Radare2's design prioritizes portability, making it straightforward to compile on various operating systems. You can build the software using either the `./configure && make` or `meson` build systems.
## Uninstallation Guide
If you need to clean up your system or remove Radare2 installations, use the following commands as needed:
- **Remove the Current Installation**
```sh
make uninstall
```
- **Completely Remove All Previous Installations**
```sh
make purge
make system-purge
```
2021-05-24 23:25:11 +02:00
2025-08-04 21:05:34 +02:00
## Troubleshooting
- **Clean Untracked Files**
2021-05-24 23:25:11 +02:00
```sh
2025-08-04 21:05:34 +02:00
git clean -xdf
2021-05-24 23:25:11 +02:00
```
2025-08-04 21:05:34 +02:00
- **Address Permission Issues**
```sh
sudo chown -R $USER
```
## Packaging Status
2025-08-04 21:05:34 +02:00
For information on Radare2s availability across various Linux distributions:
<a href="https://repology.org/metapackage/radare2">
2025-08-04 21:05:34 +02:00
<img src="https://repology.org/badge/vertical-allrepos/radare2.svg" alt="Packaging status" align="right" width="150px">
</a>
2025-08-04 21:05:34 +02:00
This badge provides an overview of packaging status across different repositories.