8.04: deborphan

Asked by peter

Hi

deborphan finds packages that have no packages depending on them. Does deborphan delete this packages? Thanks.
Peter

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu deborphan Edit question
Assignee:
No assignee Edit question
Solved by:
peter
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

no, it only shows them. You can run:

sudo apt-get --purge remove `deborphan`

to remove the list of files it finds. If spac is an issue I suggest you remove old unused kernels, this can save ~120Mb per kernel. You can see your current kernel with:

uname -a

You can list your installed kernels with:

dpkg -l | grep linux-image-2

do NOT remove the current kernel but you can remove the other kernels if they are unused.

To gain more space you can use bleachbit as root and your user (watch the browser settings as it can delete passwords etc and avoid the settings which say they will take a long time).

You can also review your installed packages and remove stuff you don't use (vinagre / vino if you don't use VNC, tsclient / rdesktop if you don't use RDP, evolution if you use webmail etc). You can also remove openoffice (300Mb) and install abiword if you only use the word processor in the suite (12mb).

Basically a default install of Ubuntu is VERY bloated but it can easily be trimmed.

Revision history for this message
peter (peter-neuweiler) said :
#2

Thanks, man.

Revision history for this message
peter (peter-neuweiler) said :
#3

How can I rermove a kernel? Thanks.
Peter

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

If you give the output of:

uname -a; dpkg -l | grep linux-image-2

I can advise.

Revision history for this message
peter (peter-neuweiler) said :
#5

peter@linux-desktop:~# uname -a; dpkg -l | grep linux-image-2
Linux linux-desktop 2.6.24-28-generic #1 SMP Thu May 27 00:16:49 UTC 2010 i686 GNU/Linux
ii linux-image-2.6.24-23-generic 2.6.24-23.46 Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-27-generic 2.6.24-27.69 Linux kernel image for version 2.6.24 on x86
ii linux-image-2.6.24-28-generic 2.6.24-28.70 Linux kernel image for version 2.6.24 on x86
peter@linux-desktop:~#

Thanks.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

sudo apt-get --purge remove linux-image-2.6.24-27-generic linux-image-2.6.24-23-generic; sudo apt-get --purge autoremove

Should leave you with one kernel.

Revision history for this message
peter (peter-neuweiler) said :
#7

Thanks, man.