View Single Post
Posts: 31 | Thanked: 11 times | Joined on Aug 2010
#7
Originally Posted by phoohb View Post
okay thx, I done that now.

But now say, if I want all documents installed.

Then I haveto reinstall package by package.

(I looking forward to do that.. wrote this little script that will do

Code:
#!/bin/sh

# an attempt to reinstall all packages 

COLUMNS=200

#get all installed packages 
aa=$( dpkg -l | awk '{ print $2 }' )

for bb in $aa
do 
clear
 echo "doing something with: $bb"
 apt-get install --reinstall $bb
done

exit 0
will take time, and/or who knows. Am I on wrong track?
(so I wait)
Modified version.

Code:
#!/bin/env sh

# an attempt to reinstall all packages 

COLUMNS=200

#get all installed packages 
aa=$( dpkg -l | grep ^ii | awk '{ print $2 }' )

for bb in $aa
do 
clear
 echo "doing something with: $bb"
 apt-get -y install --reinstall $bb
done

exit 0
BUT, many packages doesn't exist on the repository, and can't be reinstalled. Where are for example "busybox"? (most frequent shell commands using it, as say ls "/bin/ls -> busybox")