maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   can I disable "docpurge" (https://talk.maemo.org/showthread.php?t=61981)

phoohb 2010-09-09 14:06

can I disable "docpurge"
 
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.

sake 2010-09-09 14:28

Re: can I disable "docpurge"
 
Uninstall docpurge:
Code:

apt-get remove docpurge

phoohb 2010-09-09 22:22

Re: can I disable "docpurge"
 
Quote:

Originally Posted by sake (Post 811728)
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)

TiagoTiago 2011-04-17 21:30

Re: can I disable "docpurge"
 
On top of the files being small many are even symlinked :/

javispedro 2011-04-17 21:51

Re: can I disable "docpurge"
 
Copy the doc folder from a SDK installation.

Note that many Maemo packages (like some of mine) remove docs either way.

TiagoTiago 2011-04-18 01:46

Re: can I disable "docpurge"
 
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?

phoohb 2024-10-28 22:50

Re: can I disable "docpurge"
 
Quote:

Originally Posted by phoohb (Post 812108)
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")


All times are GMT. The time now is 01:13.

vBulletin® Version 3.8.8