A long time ago, the author encountered a situation where a plugin disappeared from another source, preventing them from installing the desired plugin. However, because the plugin was installed on another device, they were able to back up the deb file and install it on the desired device. This article is for those who want to back up their plugins!

Redeb and the backed up deb files (using Zebra as an example)

Plugins/programs required:
Redeb - a deb repackaging and backup plugin (source: https://wiety.github.io/cydia/)
OpenSSH - allows a computer to ssh into the device and execute commands
FileZilla - SFTP access to the device (WinSCP can also be used for Windows users)
Terminal - to execute ssh commands (PuTTY for Windows users)

Prerequisites:

First, add this source to your plugin manager (using Zebra as an example): https://wiety.github.io/cydia/

Scroll down to “Wiety’s beta repository” and find Redeb, then install it.

Install OpenSSH (skip this step if it is already installed).

Now you can move on to the computer.

Computer operations:

Note that both the mobile device and the computer need to be connected to the same LAN, otherwise ssh cannot be connected!

First, check the internal IP address on the device you want to connect to (Settings -> Wi-Fi -> tap “i” on the connected Wi-Fi).

The author has created a shortcut to check the internal IP.

Open the terminal on the computer (Windows users should install PuTTY, the author uses macOS here).
Type ssh root@192.168.31.46 in the terminal (replace the red part with your own internal IP).
Enter the ssh password for the device you want to connect to (the default password is alpine. It is recommended to change it to your own password!)

Type redeb in the terminal, and the message on the left will appear. This is because we did not specify the plugin ID in advance. Type “y” here. redeb will list all plugin IDs (right picture).

Type in the plugin ID you want to back up. Using Zebra as an example, the plugin ID is “206”.

After completing the operation, the terminal will look like this:

You can now extract the deb file you just packaged from the device. Next, open FileZilla and ssh connect to the device you just packaged the deb file on.

In Filza, tap the button in the upper left corner to open the screen, add a new site, change the server type to SFTP, enter the host name (IP of the device you want to connect to), username (root), and password, then click Connect.

After connecting, the backed up deb file is located at:

/private/var/mobile/Documents/Redeb/debs

The files in the folder are the deb files you just backed up. That’s it!