View Single Post
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#7616
Coderus, Exactly what you wrote:
Code:
if [ ! -f /etc/apt/apt.conf.d/03noautoremove ]; then
echo "APT::Get::AutomaticRemove \"0\";
APT::Get::HideAutoRemove \"1\";" > /etc/apt/apt.conf.d/03noautoremove
status=$(grep 'mp-harmattan' /var/lib/dpkg/status | cut -d ' ' -f2)
echo "Package: $status
Status: install ok installed
Priority: required
Section: user/system
Maintainer: Nokih
Architecture: all
Version: 40.2012.21-3
Description: This Nokia N9 update brings you many quality improvements.  After downloading the update, the installation may take up to 40 minutes, during which time the device can't be used. Please note that this update requires downloading large amounts of data. For more information about data charges, contact your service provider.  For more info, please visit http://www.nokia.com/support.
Maemo-Display-Name: Device update
Maemo-Flags: reboot-update,system-update
Maemo-Required-Free-Space: 46080" > /var/lib/dpkg/updates/0000
dpkg --configure -a
echo -e "${YELLOW}Remover activated successfully.${NORMAL}"
else
:
fi
The full tweak you can see here: http://pastebin.com/VzxTAuL2

PS. Can it be possible that stock apps manager automatically activate command "apt-get autoremove" when you trying to remove something from stock apps manager?

Last edited by Schturman; 2013-08-11 at 14:02.