Same happened to me.
I installed InfiniDock (iP5 7.1b2) and when it placed me into safe mode simply uninstalled it. Interestingly, even when doing so it wasn't until I also then removed IconSupport I was back in the game.
Another post-installation way of doing the same:
1, get the install DEB file (it's in
/var/cache/apt/archives/partial until you reboot)
2, uncompress it with one of the two scripts:
DEB=$(ls *.deb 2>&1)
mkdir package
cd ./package
ar -x ../$DEB
rm debian-binary
tar xvzf data.tar.gz && rm data.tar.gz
mkdir DEBIAN && cd DEBIAN
tar xvzf ../control.tar.gz && rm ../control.tar.gz
or
DEB=$(ls *.deb 2>&1)
mkdir package
cd ./package
../dpkg-deb-fat -x ../$DEB .
mkdir DEBIAN
cd DEBIAN
../../dpkg-deb-fat -e ../../$DEB .
(The second is much more robust than the first but isn't, by default, available in OS X. In one of my earlier articles on JB app programming, I've explained how dpkg-deb can be installed on OS X - or, how just dpkg-deb-fat can be downloaded.)
3. look in the just-extracted
/package/DEBIAN/control and look for the key "Depends", like so:
Depends: mobilesubstrate (>= 0.9.5000) ,preferenceLoader
This means this particular app depends on both mobilesubstrate and preferenceLoader.
(For example, this is important for tweaks like iFile or iCleaner as six or seven various additions are downloaded when the full tweak is yet when the tweak itself is removed only the tweak itself is- leaving all else.)
BTW, there is a way of completely and quickly removing
all dependencies unused by anything else via SSH (or the local terminal if you have it). I've posted a complete tutorial on this at
https://forums.macrumors.com/posts/18569011/