There are several ways to do this, let us discuss all the ways in which to work effectively.
Method 1: Manual backup APT.
Ubuntu / Apt users will find this handy
Step 1. Run the following command in the terminal iPhone
dpkg - get-selections> / backup Cydia
Step 2 FTP / SFTP files on your computer where you want to keep a backup copy
Step 3. Do the updates / Discount / clean facilities [You can follow our guidelines and unlocking Jailbreaking]
Step 4. SFTP the file back in the jailbreak iPhone and run:
That's it. You should see all the packets back into Cydia.