Reply
Thread Tools
hirte_7's Avatar
Posts: 17 | Thanked: 2 times | Joined on May 2008 @ Switzerland
#1
Hi,

I noticed that when I de-install a program not everything is removed although I can not browse or see where those files are (or I don't know hoe to). For example when installing the gpr-calendar and add calendars those settings stay on the device when de-install and afterwards install and start the application again - therefore I guess that over time alot of unused files are remaining in the memory.
A tool to clean up those unused stuff would be great. Is there already something like this?

Thanks
 
Posts: 10 | Thanked: 3 times | Joined on May 2008 @ Iowa, USA
#2
For apt-based software management systems, including the n810, from a command line you can run two commands:

(1) apt-get clean

(2) apt-get autoclean

The first removes the left behind files other than lock files. The second removes package files that can no longer be downloaded (because you have a newer versions installed, for instance).

You can check out the apt-get man page for more apt goodness here:

http://www.debian.org/doc/manuals/ap...pt-get.en.html

You will see your /var directory shrink substantially using these, usually.

Edit: oops, forgot to mention that you'll need root access to get permission to the /var directories to do this.
__________________
n810
Registered Linux User # 358809 (currently openSuSE 11.1)
Palm (since Palm Pro) & Zaurus refugee.
Currently beta testing: life
 

The Following User Says Thank You to dkm365 For This Useful Post:
Posts: 566 | Thanked: 150 times | Joined on Dec 2007
#3
I think you mean the per-user settings. They are in /home/user/.<name of application>. To delete settings of a certain app, for example one called 'some-app' do the following:

- Open xterm. By default you are in /home/user/
- To see all folders and files in there type:
Code:
ls -al
- Suppose you see the folder ".some-app" in the results. Remove it and its contents with
Code:
rm -rf .some-app
or back it up with
Code:
mv .some-app .some-app-backup
The application files themselves (not the per-user settings) should normally be removed automatically if you install and uninstall using the application manager. Only if you install using .deb files copies of packages remain. In that case you need to use apt-get clean and apt-get autoclean to get rid of them, or use apt-get remove --purge <name of app to be uninstalled> to uninstall the app and delete the package copies.

Last edited by iamthewalrus; 2008-05-29 at 22:36.
 

The Following User Says Thank You to iamthewalrus For This Useful Post:
hirte_7's Avatar
Posts: 17 | Thanked: 2 times | Joined on May 2008 @ Switzerland
#4
Thanks for those hints. My Unix days are long time back. Could you please let me know how I become root? Thanks.
 
Posts: 10 | Thanked: 3 times | Joined on May 2008 @ Iowa, USA
#5
Originally Posted by hirte_7 View Post
Thanks for those hints. My Unix days are long time back. Could you please let me know how I become root? Thanks.
That's opening a can of worms, although you'd expect it to be easy being a linux system and all (unfortunately it isn't as simple as typing su & a password at the command prompt ). There are several ways , and quite a bit of discussion as to which is easiest, which is best, etc. The main three methods, to the best of my knowledge (although I'm sure we'll hear about it if I'm wrong), are installing 'becomeroot', installing 'easyroot', or using openssh. There are others (e.g., r&d mode), but those seem to be the most often mentioned.

I've been inclined to go with one of the first two options. But some will swear by the openssh method. If you search the forums for these keywords, you'll see where to get the packages and what to do once you get them. I'd look at them and see which one looks easiest for you to understand and get working quickly and go with that.
__________________
n810
Registered Linux User # 358809 (currently openSuSE 11.1)
Palm (since Palm Pro) & Zaurus refugee.
Currently beta testing: life
 

The Following User Says Thank You to dkm365 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 05:36.