maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   /var/lib/dpkg/info/ recovery (https://talk.maemo.org/showthread.php?t=62647)

champus 2010-09-21 08:45

/var/lib/dpkg/info/ recovery
 
Hey Folks,

Last time I was drunk I thought it would be a good idea to delete the contents of "/var/lib/dpkg/info/" without realizing that all the information 'bout installed packages will get lost.

Is there any accetable way to recover the files / information that have been in that folder? Maybe there is a scripted solution to regain the package infos?

Greets

lomo 2010-09-21 10:56

Re: /var/lib/dpkg/info/ recovery
 
It's always a bad idea to do anything in root shell while beeing drunk :-).

I'd personally try to copy it from another n900 and reinstall all necessary packages. If it fails - a reflash is definitely a solution.

debernardis 2010-09-21 10:58

Re: /var/lib/dpkg/info/ recovery
 
I would apt-get install --reinstall all packages :) Maybe this is scriptable

demijan 2017-01-28 13:43

Re: /var/lib/dpkg/info/ recovery
 
Guys finally got rid of android. Sorry for bringing up this now but did anyone tried to put simbolic links in this dir and move the files away to save space for rootfs?

michaaa62 2017-01-28 16:49

Re: /var/lib/dpkg/info/ recovery
 
1 Attachment(s)
Sure! I am using this script slightly modified from this wiki page http://wiki.maemo.org/User:Tanner#Sa...pace_on_rootfs to move large directories to optfs, also known as /home/opt/

The script will show the amount of free space in rootfs before and after the moving of stuff.

Extract the script to the user directory, make it executable and run it as root
Code:

unzip movetopt.sh.zip .
chmod +x movetoopt.sh
sudo gainroot
sh movetoopt.sh



All times are GMT. The time now is 21:52.

vBulletin® Version 3.8.8