# Inspecting RPM/DEB packages

An RPM package (.rpm) is a package which is used to store files/scripts/conf files on RedHat systems.

Likewise, .deb files (Debian/binary packages) contain similar contents for Debian-based systems.

Let's inspect a simple .deb package provided by ProtonVPN for their CLI VPN client (available [here](https://protonvpn.com/download/protonvpn-stable-release_1.0.0-1_all.deb)).

```
$ file protonvpn-stable-release_1.0.0-1_all.deb
protonvpn-stable-release_1.0.0-1_all.deb: Debian binary package (format 2.0), with control.tar.xz, data compression xz
```

To unpack .deb files, you can either use dpkg -c like so;

```
$ dpkg -c protonvpn-stable-release_1.0.0-1_all.deb
```

Or you can simply use tar -x, like so;

```
$ tar -x protonvpn-stable-release_1.0.0-1_all.deb
```

Or use dpkg-deb;

```
$ dpkg-deb -x protonvpn-stable-release_1.0.0-1_all.deb .
```

This will create the files/directories which would be modified/created if you were to install the package with dpkg.

RPM - TBA


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.iblue.team/linux-forensics/inspecting-rpm-deb-packages.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
