Editing Package management

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
-
{{danger}}
 
-
 
It is good to know how to manage packages, because uninstalled ones can leave configuration files behind and there are also many pre-installed packages which you might not need.
It is good to know how to manage packages, because uninstalled ones can leave configuration files behind and there are also many pre-installed packages which you might not need.
 +
 +
 +
=Warning=
 +
 +
The usual warnings apply. You are performing administrating tasks on your device with root account and you can brick your device. If you don't know what are you typing into the terminal, then it is probably for the best if you don't do it at all!
Line 22: Line 25:
  dpkg -P package
  dpkg -P package
-
If you are unsure, you can check which files were left by a certain package with the command:
+
If you are unsure, you can check which files were left by a certain package with command:
  dpkg -L package
  dpkg -L package
Line 30: Line 33:
-
* ''dpkg - warning: while removing package, directory `/path/dir' not empty so not removed.''
+
1. dpkg - warning: while removing ''package'', directory `''/path/dir''' not empty so not removed.
It is ok if you manually delete those dirs/files if you know that they belong to the purged package (for example: don't delete /etc).
It is ok if you manually delete those dirs/files if you know that they belong to the purged package (for example: don't delete /etc).
-
* ''dpkg: error processing package (--purge):''
+
2. dpkg: error processing package (--purge):
An error occured while removing/purging the package, again resolve it manually.
An error occured while removing/purging the package, again resolve it manually.
Line 67: Line 70:
  apt-get clean
  apt-get clean
-
 
-
Remove unneeded dependencies (packages):
 
-
 
-
apt-get autoremove
 
-
 
-
 
-
=Perform package maintenance=
 
-
 
-
Do not just blindly follow these instructions if you do not know what you are doing. They are more like guidance...
 
-
 
-
 
-
# Refresh the repositories (''apt-get update'' in command line).
 
-
# Update applications (''apt-get upgrade'' in command line).
 
-
# Empty local cache with ''apt-get clean''.
 
-
# Remove unneeded dependencies with ''apt-get autoremove''.
 
-
# List all packages that are not in "normal" (ii ) state with dpkg (script is above).
 
-
# Purge them (''dpkg -P package'').
 
-
# Check if they were any errors from purging and resolve them.
 
[[Category:Software]]
[[Category:Software]]
[[Category:Power users]]
[[Category:Power users]]

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)

Templates used on this page: