public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Removing Deps
@ 2002-09-05 18:20 Adrian Almenar
  2002-09-05 21:51 ` Evan Read
  2002-09-10  2:07 ` [gentoo-dev] " Mecho Puh
  0 siblings, 2 replies; 9+ messages in thread
From: Adrian Almenar @ 2002-09-05 18:20 UTC (permalink / raw
  To: gentoo-dev

Hi everyone,

I installed recently Evolution, but now i want to remove it, ok i do and
_emerge -C evolution_ perfect it worked, but all the dependencies it
installed are still installed, how can i remove them ???

I need to remove them one by one ???



Cheers,

-- 
Adrian Almenar
GPG Key Fingerprint = 1E78 B604 AA42 B852 1449 0C24 FF6A 1448 A24D 7AF5
Gentoo Linux 1.2 - Running Linux 2.4.19-openmosix-r7 i686 - GCC: 2.95.3



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] Removing Deps
  2002-09-05 18:20 [gentoo-dev] Removing Deps Adrian Almenar
@ 2002-09-05 21:51 ` Evan Read
  2002-09-05 22:29   ` Christian Skarby
  2002-09-10  2:07 ` [gentoo-dev] " Mecho Puh
  1 sibling, 1 reply; 9+ messages in thread
From: Evan Read @ 2002-09-05 21:51 UTC (permalink / raw
  To: Adrian Almenar; +Cc: gentoo-dev

On Fri, 6 Sep 2002 04:20, Adrian Almenar wrote:
> Hi everyone,
>
> I installed recently Evolution, but now i want to remove it, ok i do and
> _emerge -C evolution_ perfect it worked, but all the dependencies it
> installed are still installed, how can i remove them ???
>
> I need to remove them one by one ???

I think that:

# emerge unmerge evolution

would be appropriate. See the portage manual: 
http://www.gentoo.org/doc/portage-manual.html

I think this is what it means.  You can probably --pretend first.

Evan.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] Removing Deps
  2002-09-05 21:51 ` Evan Read
@ 2002-09-05 22:29   ` Christian Skarby
  2002-09-05 22:35     ` Evan Read
  0 siblings, 1 reply; 9+ messages in thread
From: Christian Skarby @ 2002-09-05 22:29 UTC (permalink / raw
  To: eread; +Cc: aalmenar, gentoo-dev

>> I need to remove them one by one ???
I think you'll have to do that. As far as i know (AFAIK) there is no tool
calculating all packages and sorting out those dependies not used by other
ebuilds, I think such a tool could only be used on a system that uses
portage and portage only to install packages. On the other hand I could be
wrong and thus there might exist something doing what you're looking for.

> # emerge unmerge evolution
Actually emerge unmerge evulution is equal to emerge -C evolution
# emerge --help
<snip>
unmerge (-C short option)
</snip>

Christian





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] Removing Deps
  2002-09-05 22:29   ` Christian Skarby
@ 2002-09-05 22:35     ` Evan Read
  2002-09-06  0:27       ` Rob Smith
  0 siblings, 1 reply; 9+ messages in thread
From: Evan Read @ 2002-09-05 22:35 UTC (permalink / raw
  To: Christian Skarby; +Cc: aalmenar, gentoo-dev

On Fri, 6 Sep 2002 08:29, Christian Skarby wrote:
> >> I need to remove them one by one ???
>
> I think you'll have to do that. As far as i know (AFAIK) there is no tool
> calculating all packages and sorting out those dependies not used by other
> ebuilds, I think such a tool could only be used on a system that uses
> portage and portage only to install packages. On the other hand I could be
> wrong and thus there might exist something doing what you're looking for.

Egads! ;)  I suppose that Debian is the same and so is Redhat.

But this kinda feature would set Portage even further apart.

Perhaps a dependency counter could be applied to each package (stored in a 
table?) and, when unmerging a package, portage could lower the dep count on 
the dependecies of that package.

If the reference counter drops to zero, and the user supplied "--removedeps", 
then emerge could unmerge them too.

emerge --listzerodeps might give one a list of packages that have a 0 counter.

emerge --zerodeps unmerge might remove all packages that have nothing that 
depends on them.

Perhaps an environment variable could be set in make.conf or something to say:

AUTOUNMERGERZERODEP=1	# auto remove packages that aren't depended on

... or something ;)

> > # emerge unmerge evolution
>
> Actually emerge unmerge evulution is equal to emerge -C evolution
> # emerge --help
> <snip>
> unmerge (-C short option)
> </snip>

My bad.  Some of the syntax of emerge is "zany" to say the least. ;)

THanks.

Evan.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] Removing Deps
  2002-09-05 22:35     ` Evan Read
@ 2002-09-06  0:27       ` Rob Smith
  2002-09-06  1:19         ` Evan Read
  0 siblings, 1 reply; 9+ messages in thread
From: Rob Smith @ 2002-09-06  0:27 UTC (permalink / raw
  To: gentoo-dev

On Thursday 05 September 2002 06:35 pm, Evan Read wrote:
> Perhaps a dependency counter could be applied to each package (stored in a
> table?) and, when unmerging a package, portage could lower the dep count on
> the dependecies of that package.

Okay, but what is the count of a package that has no deps that you merged in?
If I merge in BZFlag, it starts at dep count of 0 because it isn't a dep of 
anything, then portage would then flag this for removal if I try to see a 
list of zerodeps? This wouldn't work, as most packages are not deps of a 
package. What about a flag that this was a dep and try to calculate if it is 
or isn't anymore?


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] Removing Deps
  2002-09-06  0:27       ` Rob Smith
@ 2002-09-06  1:19         ` Evan Read
  2002-09-06  3:11           ` C. Linus Hicks
  0 siblings, 1 reply; 9+ messages in thread
From: Evan Read @ 2002-09-06  1:19 UTC (permalink / raw
  To: Rob Smith; +Cc: gentoo-dev

On Thu, Sep 05, 2002 at 08:27:29PM -0400, Rob Smith wrote:
> On Thursday 05 September 2002 06:35 pm, Evan Read wrote:
> > Perhaps a dependency counter could be applied to each package (stored in a
> > table?) and, when unmerging a package, portage could lower the dep count on
> > the dependecies of that package.
> 
> Okay, but what is the count of a package that has no deps that you merged in?
> If I merge in BZFlag, it starts at dep count of 0 because it isn't a dep of 
> anything, then portage would then flag this for removal if I try to see a 
> list of zerodeps? This wouldn't work, as most packages are not deps of a 
> package. What about a flag that this was a dep and try to calculate if it is 
> or isn't anymore?

Ok, my idea is too simple for the number of features I suggested. 
Evidently, having a "remove all no deps" option would be a bad idea ;)  It 
seems so stupid now ;)

It would probably make sense, in the short term, if this was a feature 
important to enough people, to maybe have the option of stepping through a 
list of dependencies that are presented (with the right switch) after the 
main packages is unmerged.

I realise that those dependencies would have other depedencies and it 
could get messy.  I would suggest this would be an option that would come 
with dire warnings.

The other option is to duplicate the install of dependencies among 
programs so that you have dependencies met or removed for a package 
independent of others.  This would be bloaty, but prolly the only way to 
easily impliment auto-removal of dependencies.

Anyways, just random thoughts.

-- 
Evan Read
http://eread.freeshell.org

"The future comes 60 minutes an hour no matter who you are or what you 
do." 
	The Screwtape Letters - C.S. Lewis


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] Removing Deps
  2002-09-06  1:19         ` Evan Read
@ 2002-09-06  3:11           ` C. Linus Hicks
  2002-09-06  4:44             ` Karsten Schulz
  0 siblings, 1 reply; 9+ messages in thread
From: C. Linus Hicks @ 2002-09-06  3:11 UTC (permalink / raw
  To: Evan Read; +Cc: Rob Smith, gentoo-dev

On Thu, 2002-09-05 at 21:19, Evan Read wrote:
> On Thu, Sep 05, 2002 at 08:27:29PM -0400, Rob Smith wrote:
> > On Thursday 05 September 2002 06:35 pm, Evan Read wrote:
> > > Perhaps a dependency counter could be applied to each package (stored in a
> > > table?) and, when unmerging a package, portage could lower the dep count on
> > > the dependecies of that package.
> > 
> > Okay, but what is the count of a package that has no deps that you merged in?
> > If I merge in BZFlag, it starts at dep count of 0 because it isn't a dep of 
> > anything, then portage would then flag this for removal if I try to see a 
> > list of zerodeps? This wouldn't work, as most packages are not deps of a 
> > package. What about a flag that this was a dep and try to calculate if it is 
> > or isn't anymore?
> 
> Ok, my idea is too simple for the number of features I suggested. 
(snip)

If I explicitly merge a package, increment its dependency count. I am
dependent on it.

Linus





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] Removing Deps
  2002-09-06  3:11           ` C. Linus Hicks
@ 2002-09-06  4:44             ` Karsten Schulz
  0 siblings, 0 replies; 9+ messages in thread
From: Karsten Schulz @ 2002-09-06  4:44 UTC (permalink / raw
  To: gentoo-dev

Linus:
> If I explicitly merge a package, increment its dependency count. I am
> dependent on it.

yes, and output of "emerge --listdeps" would be:
openssl-0.9.6 [2] <- apache, kde-base
kdegames [1] <- user
libnobodyneedsthis-0.0.7 [0] <- none

I begin to like this idea :)

have fun,
Karsten

-- 
"Es war das alte Lied: Bill Gates war keineswegs daran interessiert,
 großartige Produkte zu entwickeln - er wollte die Welt dazu zwingen,
 seine Produkte zu benutzen."
 Wendy Goldman Rohm - "Die Microsoft-Akte"
 



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [gentoo-dev] Re: Removing Deps
  2002-09-05 18:20 [gentoo-dev] Removing Deps Adrian Almenar
  2002-09-05 21:51 ` Evan Read
@ 2002-09-10  2:07 ` Mecho Puh
  1 sibling, 0 replies; 9+ messages in thread
From: Mecho Puh @ 2002-09-10  2:07 UTC (permalink / raw
  To: gentoo-dev

Adrian Almenar wrote:
> Hi everyone,
> 
> I installed recently Evolution, but now i want to remove it, ok i do and
> _emerge -C evolution_ perfect it worked, but all the dependencies it
> installed are still installed, how can i remove them ???
> 
> I need to remove them one by one ???

http://gentoo.zhware.net/fuq.html#admin_sect4





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-09-10  2:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-05 18:20 [gentoo-dev] Removing Deps Adrian Almenar
2002-09-05 21:51 ` Evan Read
2002-09-05 22:29   ` Christian Skarby
2002-09-05 22:35     ` Evan Read
2002-09-06  0:27       ` Rob Smith
2002-09-06  1:19         ` Evan Read
2002-09-06  3:11           ` C. Linus Hicks
2002-09-06  4:44             ` Karsten Schulz
2002-09-10  2:07 ` [gentoo-dev] " Mecho Puh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox