The Following User Says Thank You to phoohb For This Useful Post: | ||
|
2010-09-09
, 22:22
|
Posts: 31 |
Thanked: 11 times |
Joined on Aug 2010
|
#3
|
#!/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
|
2011-04-17
, 21:30
|
Posts: 1,522 |
Thanked: 392 times |
Joined on Jul 2010
@ São Paulo, Brazil
|
#4
|
|
2011-04-17
, 21:51
|
|
Posts: 2,355 |
Thanked: 5,249 times |
Joined on Jan 2009
@ Barcelona
|
#5
|
|
2011-04-18
, 01:46
|
Posts: 1,522 |
Thanked: 392 times |
Joined on Jul 2010
@ São Paulo, Brazil
|
#6
|
The Following User Says Thank You to TiagoTiago For This Useful Post: | ||
|
2024-10-28
, 22:50
|
Posts: 31 |
Thanked: 11 times |
Joined on Aug 2010
|
#7
|
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
will take time, and/or who knows. Am I on wrong track?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
(so I wait)
#!/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
I dont see the point of having a script that removes small textfiles. As the "docpurge" does. Cant see any piont of removing documents.. Question:
1. Why removing documents, as the docpurge -script does?
2. How do I disable it, without messing toomuch with the system?
I have used google, and search function in this forum.. before making this post.. docpurge is just some short script cousing alot of hazzle in bugreports, etc. As I see it. As a comment in its script: (/usr/sbin/docpurge) # Real hackers don't read docs. NOT.