apt-findremovable v0.1 (initial release)

2006-10-03 Thread Jan Kechel
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Hi,

I hope this is the right mailinglist for this.

I always had the problem, that if I removed a package via apt-get
remove, that there were still other packages that only were installed
because of that package.

I wrote a little perl-script:

NAME
apt-findremovable - tries to find out which packages might be installed
only because of a specified one.

SYNOPSIS
$ apt-findremovable 

DESCRIPTION
we use 'apt-cache depends' and 'apt-cache rdepends' to find out which
packages might be installed only because of the specified one.

EXAMPLE
$ ./apt-findremovable texlive
...
Only texlive depends on the following installed packages:
perl-tk
texlive-doc-en
texlive-context
texlive-metapost

The v0.1 release can downloaded via:
http://prevalent-digest.de/apt-findremovable/apt-findremovable-0.1.tar.bz2

So my questions are:

Is there a mailinglist special for apt-tools?
Does a tool like this already exist?
Would alioth.debian.org be the right place for this?

cu,

Jan

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFInAZ58nJkn8diosRA1S7AKC44GtaofheGWG7Z0NiQuB6FhVzwACgxtPb
wDnn3RHyi4sypymI+1fdh4s=
=SC+e
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apt-findremovable v0.1 (initial release)

2006-10-03 Thread Jan Kechel
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Michal Čihař wrote:
> deborphan looks simmilar to what you describe.

yeah, similar, also it finds only the leaves, while apt-findremovable
checks which depends have no other rdepends than the specified one

> Anyway if you use
> aptitude instead of apt-get it tracks all that automatically and you
> don't have to guess.

Cool, didn't know that.
But it doesn't work for packages that are already installed via apt-get.
I guess I'll use aptitude instead of apt-get from now on, and try to
cleanup via apt-findremovable :)

Thanks,

Jan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFInmO58nJkn8diosRAybpAKDArd/N2vryvcUGD9GyqWA176ndXgCfUCgC
SPUejm4uyweGVWTh2ifOWtY=
=A84s
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apt-findremovable v0.1 (initial release)

2006-10-03 Thread Jan Kechel
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160


> Some of us are partial to apt-get and would appreciate
> apt-findremovable.

cool :)

I just released v0.2:
http://prevalent-digest.de/apt-findremovable/

.. it's getting slower (takes about 1min to complete),
but now it re-checks, if apt-cache rdepends results really depend on
that package, or if they only suggest/recommend it.

now the result on my system for 'apt-findremovable texlive' looks like this:

- -- cut --
Only texlive really depends on the following installed packages:
perl-tk texlive-doc-en tex-common texlive-latex-base texlive-base
texlive-doc-base libxml-parser-perl texlive-base-bin texlive-metapost
texlive-pdfetex libpoppler0c2 texlive-latex-recommended
texlive-fonts-recommended texlive-context
- -- end cut --

have fun trying it. (manually i would never have found that e.g. perl-tk
and libpoppler0c2 is not used by anything else .. )

cu,

Jan

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFIolb58nJkn8diosRAyynAKCN83Brnot6TaIUc04R8hYTxShdtACeL/9t
BAoCeFmD4mIFc0elsg2Dz60=
=7Oxp
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apt-findremovable v0.4

2006-10-03 Thread Jan Kechel
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Ron Johnson wrote:
>>> have fun trying it.
> 
> Thanks.  Is a single perl script worth packaging, though?

since v0.4 its even seems to be working correctly :)
http://prevalent-digest.de/apt-findremovable/

I guess that's also the final version (at least until somebody finds a
bug or sends me a patch/feature request).

cu,

Jan

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFItT858nJkn8diosRA1MaAJ92hCM5SsoJpn5x3P/LJc5367BUPQCfT1zc
y0XrN4krYCbLMzqgItWfJA8=
=74TP
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apt-findremovable v0.1 (initial release)

2006-10-04 Thread Jan Kechel
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160


> aptitude has this
> apt has that
> aptitude can't do that
> apt can't do this
> [...]

.. is this always here like this?
Isn't it just that some prefer apt and some aptitude, and that of course
those that prefer aptitude think that apt-findremovable is obsolete, and
that those that prefer apt not?

I hope i helped the apt-users, at least it won't hurt the aptitude users.

ack?

jan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFI60u58nJkn8diosRA0RHAJ9VDAS5Mc/ynHXy23BOv1Shny7vwQCfXcQK
AlLzmeRT4J04KkS6DxdsRF8=
=ClTm
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apt-findremovable v0.1 (initial release)

2006-10-05 Thread Jan Kechel
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Brian May wrote:
>>>>>> "Jan" == Jan Kechel <[EMAIL PROTECTED]> writes:
> 
> 
> Jan> I wrote a little perl-script:
> 
> How does this compare with deborphan?
> 

deborphan shows you the 'leave' packages of your dependency-tree

apt-findremovable checks for a given leave what else can be removed if
you removed that leave

.. anyway, it's obsolete,

- - 'aptitude' is supposed to do the same, and

- - 'debfoster' is exactly the same, only does it this for all packages
automatically and asks you through it like an assistant

I love debfoster now :)

cu,

Jan

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFJMbh58nJkn8diosRA0EyAJ9KNVsjuSRJBMscIM1Qx33eulbb5wCgm3th
vpp7VRltx9bCVPLIwDZkgMY=
=bYlZ
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apt-findremovable v0.1 (initial release)

2006-10-11 Thread Jan Kechel
Peter Palfrader wrote:
> Ever tried the simulate button in the orphaner frontend?  I don't know
> apt-findremovable's UI but I very much like orphaner's.  But then I
> might be just slightly biased. :)

don't care about apt-findremovable anymore, debfoster does it's job much
better :)

> Peter

Jan



signature.asc
Description: OpenPGP digital signature