Skip to content.
The Debian System -- Concepts and Techniques The Debian System -- Concepts and Techniques
Martin F. Krafft Open Source Press / No Starch Press ISBN 3-937514-07-4 / 1-593270-69-0
Sections
Personal tools

Deborphan may need to be run iteratively (page 248)

Document Actions
More...

Reported on: 2006-07-30

In chapter 5. The Debian package management system on page 248:

Deborphaner is not iterative (or recursive, depending on how you look at it). In one run it may suggest to remove a set of packages, but it fails to identify packages that would be obsolete if the user removed the packages suggested in the first run.

Discussion

Philippe Teuwen suggests the following loop:

while [ $(deborphan | wc -l) -ne 0 ]; do
echo "Purging $(deborphan | wc -l) packets:";
deborphan | xargs dpkg --purge;
done

Credits

Philippe Teuwen
Feedback

Noel Davis, rootprompt.org: Can you imagine a book about Debian GNU/Linux stretching to 600 pages? No, not covering any of the applications that ship with Debian, nor delving into general configuration of, say, X or Samba. Just pure Debian; that is to say, the book covers Debian-specific utilities only, in densely printed pages with hardly any screenshots. Yup, a book like that has just been published under the name of The Debian System - Concept and Techniques. Written by Martin Krafft, this is one of the most comprehensive and detailed accounts of the largest Linux distribution in existence.

 
 

Powered by Plone

This site conforms to the following standards: