iPhone How to save deb files using iFunbox?

Discussion in 'Jailbreaks and iOS Hacks' started by charlestx, Feb 21, 2014.

  1. charlestx macrumors regular

    charlestx

    Joined:
    Mar 16, 2013
    Location:
    Florida
    #1
    Can someone please explain how to save deb files using iFunbox to my computer? Or is there a better way to save versions of Cydia tweaks prior to upgrading to a newer version? Just in case they do not work on my 5S as well as the previous version, I use Windows 7.
     
  2. Menneisyys2 macrumors 603

    Joined:
    Jun 7, 2011
    #2
    Just go to /var/cache/apt/archives/ and look for DEB files.
     
  3. charlestx thread starter macrumors regular

    charlestx

    Joined:
    Mar 16, 2013
    Location:
    Florida
    #3
    I don't see anything other than a folder named 'partial' in var/cache/apt/archives (FYI - I'm a newbie)
     
  4. darricksailo macrumors 601

    darricksailo

    Joined:
    Dec 18, 2012
    #4
    Have you rebooted/respring recently? I think a reboot deletes temp and cache files, not quite sure what resprings delete (other than icon caches and status bar UI caches)
     
  5. charlestx thread starter macrumors regular

    charlestx

    Joined:
    Mar 16, 2013
    Location:
    Florida
    #5
    Yes I recently did a respring. Does this delete everything in var/cache/apt/archives?
     
  6. Menneisyys2 macrumors 603

    Joined:
    Jun 7, 2011
    #6
    Reinstall the tweak but make sure you don't install anything else. You can try looking for the EB file before even Cydia-initiated resprings / reboots. (However, resprings shouldn't remove those files.)

    ----------

    It shouldn't. However, if you do install another tweak after installing one, the previous' DEB file may be deleted.
     
  7. charlestx thread starter macrumors regular

    charlestx

    Joined:
    Mar 16, 2013
    Location:
    Florida
    #7
    Ok... Thanks everyone... I am able to download now with you'alls help. Last question tho should I need to retrieve one of these files back onto my 5S, how would I do it?
     
  8. Menneisyys2 macrumors 603

    Joined:
    Jun 7, 2011
    #8
    Just trasnfer the file anywhere, go there with iFile, tap on the DEB file and select Installer.
     
  9. Qaanol macrumors 6502a

    Joined:
    Jun 21, 2010
    #9
    I’ve got a package called DebianSaverLaunchDaemon that automatically copies each deb that I download from Cydia. I can’t recall which repo I got it from, but it works great.
     
  10. charlestx thread starter macrumors regular

    charlestx

    Joined:
    Mar 16, 2013
    Location:
    Florida
    #10
    Is there anyway to save a tweak version prior to upgrading to the next version? (If I try to reinstall it it wants to update to the next version)

    ----------

    Where does it copy it to?
     
  11. Menneisyys2 macrumors 603

    Joined:
    Jun 7, 2011
    #11
    If it's no longer available in the original URL, then, the excellent (and free) OpenBackup can't access it either.

    Nevertheless, theoretically, it's possible to collect the files installed by a DEB installer from the file system as the <packagename>.list file lists them all. However, they won't necessarily be the original ones - they may already have been changed (e.g., configuration data overwritten etc.). That is, in some cases, it's in no way possible to restore the pre-first-run state; in many other cases, it is.

    The same stands for the pre/post inst/rm files (let me know if you need more info on them - I've written several articles on DEB files) also need for proper (de)installation - they can be easily restored from the file system and put into a DEB file.
     
  12. HenryLong macrumors 6502

    HenryLong

    Joined:
    Apr 11, 2013
    Location:
    Germany
    #12
    Is OpenBackup already available for iOS7?
     
  13. Menneisyys2, Feb 21, 2014
    Last edited: Feb 21, 2014

    Menneisyys2 macrumors 603

    Joined:
    Jun 7, 2011
    #13
    Dunno. Basically, it should be very easy to reimplement - after all, all it does is going over some system lists and fetches the DEB installers from the URL's in those lists.

    EDIT: just tested the now-current OpenBackup under (true) 7.0.4 - crashes at once. As it has source code, I check the cause for the crash.
     
  14. charlestx thread starter macrumors regular

    charlestx

    Joined:
    Mar 16, 2013
    Location:
    Florida
    #14
    I have tried this tweak but nothing shows up in the folder that is mentioned from the description page in Cydia. Am I missing something?
     
  15. Menneisyys2 macrumors 603

    Joined:
    Jun 7, 2011
    #15
    Sorry, I was wrong. It works just fine under both 7.0.4 and (spoofed-to-7.0.4) 7.1b3. It just needed a manual respring on my iPhone 5 (not so on the iPad3). Then, fetching the original DEB's of the installed tweaks worked just fine.
     
  16. Menneisyys2 macrumors 603

    Joined:
    Jun 7, 2011
    #16
    Incidentally, should you have problems with the GUI, I have some very good news for you: it contains no real backup / restore code as it just provides a front-end for the backup* scripts the DEB installer installs to /usr/bin.

    Most important of these Unix scripts is backupdebs. If you, after installing OpenBackup, SSH to your iDevice and enter the backupdebs command, it'll nicely fetch every net-sourced DEB file, even commercial ones, to /var/mobile/OpenBackupDebs. As you can see, there's absolutely no need to even start the OpenBackup GUI - all the business logic is in Unix scripts and nothing in ARM binaries.

    BTW, as these scripts all call stock APT functions, they're very robust and, again, allow for fetching even commercial packages, which, otherwise, would be a nightmare when directly trying to fetch those over a simple, low-level connection. (I know this as I, as has been pointed out above, played with DEB's, APT etc. a lot.)

    Two example screenshots of the full output of the script on my iPad 3. As you can see (check out particularly the bottom of the second screnshot), it did fetch commercial DEB's too:
     

    Attached Files:

  17. Menneisyys2 macrumors 603

    Joined:
    Jun 7, 2011
    #17
    It is - see my previous posts. (My initial answer was wrong.)
     
  18. Qaanol macrumors 6502a

    Joined:
    Jun 21, 2010
    #18
    I don’t know, it works for me on 6.1.2. It doesn’t back up already-installed tweaks unless you reinstall them (which is what I did to get a backup of this tweak itself) but when I install (or reinstall) a tweak, it gets saved on my phone.

    What I especially like about having the debs themselves backed up, rather than just a list of tweaks, is that I can easily downgrade a tweak if an update has changes I don’t like.
     
  19. charlestx thread starter macrumors regular

    charlestx

    Joined:
    Mar 16, 2013
    Location:
    Florida
    #19
    I guess it does not work on 7.0.4 as I have tried reinstalling tweaks and installing new tweaks on my 5S or iPad2.
     
  20. tateu macrumors 6502

    Joined:
    Jan 27, 2012
    #20
    By far the best reason. I have been doing this for years with Cydia tweaks and App store apps and used them on several occasions for both types.
     
  21. CEMAK macrumors newbie

    Joined:
    Mar 29, 2014
    #21
    Can u pls help me with assembly an App from Cydia into DEB file for future possibility to reinstall it as the sourse not handle this app version anymore and i cannot find it anywhere on the internet?
    I'm not very good with SSH, but definitely will figure out iTools or iFunBox instructions
    I would be very thankful if u guide me at least with some instructions even using SSH :)
     
  22. Menneisyys2 macrumors 603

    Joined:
    Jun 7, 2011
    #22
    What's the name of the original app? I may have the DEB locally (I save all my debs because of my getting burnt by the removal of Skype Recorder, which I paid $7 for two years ago).
     
  23. CEMAK macrumors newbie

    Joined:
    Mar 29, 2014
    #23
    oh, man
    did they really removed it, i used it on my 3gs ios4 but didn't need it since then, hoping download it on demand
    damn! it was really useful app :(

    ok, i'm looking for NCSettings 2.0-2 (it's beta, but DND toggle works like a charm)
    it would be great if u accidently have exactly this version or smth that really helps DND toggle function correctly (i think it uses flipswitch)
    (BTW where can i see the list of dependencies on this App?)
     
  24. Menneisyys2 macrumors 603

    Joined:
    Jun 7, 2011
    #24
    You're out of luck - I don't use DND (instead, I just switch on flight mode, which also results in way better battery life).

    In the DEB file's /DEBIAN/control file, in "Depends:".

    An example: Depends: mobilesubstrate (>= 0.9.5000) ,preferenceLoader

    If you don't have the DEB file, the control file of each and every tweak in every repo you access in Cydia is under /var/lib/apt/lists/<reponame and some other stuff>_Packages

    As NCSettings is in the modmyi repo, its last-synched control file is listed in this file:

    apt.modmyi.com_dists_stable_main_binary-iphoneos-arm_Packages

    Currently, as of version 1.7.1, it's this (extraced by me from the above file):



    Package: com.jamied360.ncsettings
    Name: NCSettings
    Version: 1.7.1
    Architecture: iphoneos-arm
    Author: JamieD360 <jamied360support@live.co.uk>
    Depends: firmware (>= 5.0), mobilesubstrate, com.chpwn.weeloader, preferenceloader
    Depiction: http://modmyi.com/info/ncsettings.d.php
    Priority: extra
    Section: Addons (NotificationCenter)
    Filename: pool/main/c/com.jamied360.ncsettings/com.jamied360.ncsettings_1.7.1_iphoneos-arm.deb
    Size: 472030
    SHA256: fcc1ba038df84e883dfae64c68ff2d3226f8596a35716f39671e10714c82111e
    SHA1: 29eb616b6720e9d9a4262722733824c5f0bc8e32
    MD5sum: 8c17029eb872efac412f8e9acb5107d5
    Description: NCSettings is a sleek Notification Center toggle widget
    Homepage: http://modmyi.com/info/ncsettings.php
    Maintainer: poetic_folly <poetic_folly@modmyi.com>
    Sponsor: ModMyi.com <http://modmyi.com/forums/index.php?styleid=31>

    ----------

    I try to change the iOS5+ dependence to 4.0 to see what happens. It MIGHT work. I'll report back.
     
  25. Menneisyys2 macrumors 603

    Joined:
    Jun 7, 2011
    #25

Share This Page