recovering from "rm -rf"

12 Apr
2007
12 Apr
'07
11:56 p.m.
While upgrading my Ubuntu machine i needed to manually remove /usr/lib/python2.4/site-packages/dbus, but i accidently removed /usr/lib/python2.4/site-packages instead. I was safe as i could ask dpkg which packages had files in those directories (with -S) and reinstall them. If someone else needs to do this, the command is: sudo apt-get --reinstall install `dpkg -S /usr/lib/python2.4/site-packages | cut -d: -f1 | sed 's/,//g'` (changing the directory name, of course)
6591
Age (days ago)
6591
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jonathan Purvis