Active Topics

 



Notices


Reply
Thread Tools
Posts: 31 | Thanked: 11 times | Joined on Aug 2010
#1
Hi.

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.
 

The Following User Says Thank You to phoohb For This Useful Post:
Posts: 42 | Thanked: 13 times | Joined on Jun 2010 @ Netherlands
#2
Uninstall docpurge:
Code:
apt-get remove docpurge
 

The Following User Says Thank You to sake For This Useful Post:
Posts: 31 | Thanked: 11 times | Joined on Aug 2010
#3
Originally Posted by sake View Post
Uninstall docpurge:
Code:
apt-get remove docpurge
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)
 
Posts: 1,522 | Thanked: 392 times | Joined on Jul 2010 @ São Paulo, Brazil
#4
On top of the files being small many are even symlinked :/
 
javispedro's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#5
Copy the doc folder from a SDK installation.

Note that many Maemo packages (like some of mine) remove docs either way.
 
Posts: 1,522 | Thanked: 392 times | Joined on Jul 2010 @ São Paulo, Brazil
#6
Why waste battery charge and weardown on the flash memory if it's gonna delete the files anyway? If after the installation is done the goal is to not have any docs installed, why not simply not install any to start with?
 

The Following User Says Thank You to TiagoTiago For This Useful 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")
 
Reply


 
Forum Jump


All times are GMT. The time now is 09:34.