FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor


 
 
LinkBack Thread Tools
 
Old 06-03-2008, 03:41 PM
Miroslav Lichvar
 
Default rpmreaper

Hi,

I've put together a small ncurses application for removing unnecessary
packages and their dependencies from the system.

In a mutt-like interface it allows to browse through dependencies,
select packages and run rpm -e on them.

For those who don't want to start under root some random stuff downloaded
from internet, it can be used under a regular user too. On exit, when
asked to not try to run rpm -e, it will write to stdout the list of
selected packages.

Available here:
http://mlichvar.fedorapeople.org/rpmreaper/

Review request filed here:
https://bugzilla.redhat.com/show_bug.cgi?id=449784

--
Miroslav Lichvar

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 06-03-2008, 03:51 PM
seth vidal
 
Default rpmreaper

On Tue, 2008-06-03 at 17:41 +0200, Miroslav Lichvar wrote:
> Hi,
>
> I've put together a small ncurses application for removing unnecessary
> packages and their dependencies from the system.
>
> In a mutt-like interface it allows to browse through dependencies,
> select packages and run rpm -e on them.
>
> For those who don't want to start under root some random stuff downloaded
> from internet, it can be used under a regular user too. On exit, when
> asked to not try to run rpm -e, it will write to stdout the list of
> selected packages.

out of curiosity: any reason you did this in c directly to rpmlib rather
than just using the routines that already exist in python and yum's
libraries?

-sv


--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 06-03-2008, 04:28 PM
Miroslav Lichvar
 
Default rpmreaper

On Tue, Jun 03, 2008 at 11:51:09AM -0400, seth vidal wrote:
> > I've put together a small ncurses application for removing unnecessary
> > packages and their dependencies from the system.
>
> out of curiosity: any reason you did this in c directly to rpmlib rather
> than just using the routines that already exist in python and yum's
> libraries?

I prefer C for this kind of applications and the code for reading
rpmdb is quite simple, so using the libraries probably wouldn't help
much.

--
Miroslav Lichvar

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 06-03-2008, 04:34 PM
seth vidal
 
Default rpmreaper

On Tue, 2008-06-03 at 18:28 +0200, Miroslav Lichvar wrote:
> On Tue, Jun 03, 2008 at 11:51:09AM -0400, seth vidal wrote:
> > > I've put together a small ncurses application for removing unnecessary
> > > packages and their dependencies from the system.
> >
> > out of curiosity: any reason you did this in c directly to rpmlib rather
> > than just using the routines that already exist in python and yum's
> > libraries?
>
> I prefer C for this kind of applications and the code for reading
> rpmdb is quite simple, so using the libraries probably wouldn't help
> much.

What is 'this kind of application'?

-sv


--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 06-03-2008, 04:48 PM
Miroslav Lichvar
 
Default rpmreaper

On Tue, Jun 03, 2008 at 12:34:45PM -0400, seth vidal wrote:
> On Tue, 2008-06-03 at 18:28 +0200, Miroslav Lichvar wrote:
> > On Tue, Jun 03, 2008 at 11:51:09AM -0400, seth vidal wrote:
> > > > I've put together a small ncurses application for removing unnecessary
> > > > packages and their dependencies from the system.
> > >
> > > out of curiosity: any reason you did this in c directly to rpmlib rather
> > > than just using the routines that already exist in python and yum's
> > > libraries?
> >
> > I prefer C for this kind of applications and the code for reading
> > rpmdb is quite simple, so using the libraries probably wouldn't help
> > much.
>
> What is 'this kind of application'?

Simple applications that process lot of data in a way that doesn't
justifies using a high-level language like python.

--
Miroslav Lichvar

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 06-03-2008, 05:00 PM
Ignacio Vazquez-Abrams
 
Default rpmreaper

On Tue, 2008-06-03 at 18:48 +0200, Miroslav Lichvar wrote:
> On Tue, Jun 03, 2008 at 12:34:45PM -0400, seth vidal wrote:
> > What is 'this kind of application'?
>
> Simple applications that process lot of data in a way that doesn't
> justifies using a high-level language like python.

HUH? That... that makes no sense...

--
Ignacio Vazquez-Abrams <ivazqueznet@gmail.com>

PLEASE don't CC me; I'm already subscribed
--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 06-03-2008, 07:57 PM
Denis Leroy
 
Default rpmreaper

Ignacio Vazquez-Abrams wrote:

On Tue, 2008-06-03 at 18:48 +0200, Miroslav Lichvar wrote:

On Tue, Jun 03, 2008 at 12:34:45PM -0400, seth vidal wrote:

What is 'this kind of application'?

Simple applications that process lot of data in a way that doesn't
justifies using a high-level language like python.


HUH? That... that makes no sense...


Do i sense some python bias on this list ? :-)

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 06-03-2008, 08:02 PM
seth vidal
 
Default rpmreaper

On Tue, 2008-06-03 at 21:57 +0200, Denis Leroy wrote:
> Ignacio Vazquez-Abrams wrote:
> > On Tue, 2008-06-03 at 18:48 +0200, Miroslav Lichvar wrote:
> >> On Tue, Jun 03, 2008 at 12:34:45PM -0400, seth vidal wrote:
> >>> What is 'this kind of application'?
> >> Simple applications that process lot of data in a way that doesn't
> >> justifies using a high-level language like python.
> >
> > HUH? That... that makes no sense...
>
> Do i sense some python bias on this list ? :-)

I don't really care if it comes across or bias or not. We have most of
the package mgmt infrastructure written in python. It just makes sense
to write apps like this to use the same libs, if only b/c then it
behaves consistently.

-sv


--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 06-03-2008, 08:18 PM
"Michael Wiktowy"
 
Default rpmreaper

On Tue, Jun 3, 2008 at 4:02 PM, seth vidal <skvidal@fedoraproject.org> wrote:
> I don't really care if it comes across or bias or not. We have most of
> the package mgmt infrastructure written in python. It just makes sense
> to write apps like this to use the same libs, if only b/c then it
> behaves consistently.

If you have a package that has the sole task of helping to cull down
the list of installed packages, you'd want it to depend on the minimum
number of packages so you could cull, for example, python. From the
description of the OP, it looks like it doesn't do dependency
resolution, just rpm -e, so there is no behaviour to keep consistent.

/Mike

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 06-03-2008, 08:27 PM
seth vidal
 
Default rpmreaper

On Tue, 2008-06-03 at 16:18 -0400, Michael Wiktowy wrote:
> On Tue, Jun 3, 2008 at 4:02 PM, seth vidal <skvidal@fedoraproject.org> wrote:
> > I don't really care if it comes across or bias or not. We have most of
> > the package mgmt infrastructure written in python. It just makes sense
> > to write apps like this to use the same libs, if only b/c then it
> > behaves consistently.
>
> If you have a package that has the sole task of helping to cull down
> the list of installed packages, you'd want it to depend on the minimum
> number of packages so you could cull, for example, python.

It is very hard to remove python from a fedora system and have a
functional (or even quasi-functional system) so why don't we start with
that given.


> From the
> description of the OP, it looks like it doesn't do dependency
> resolution, just rpm -e, so there is no behaviour to keep consistent.

/me boggles.
-sv



--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 

Thread Tools




All times are GMT. The time now is 02:44 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org