On Tue, 7 May 2024 11:32:43 +0100, Jorge Almeida wrote:

> > > I seem to remember I installed a long time ago. It is in the world
> > > file, hence emerge -c wouldn't clean it. I don't have csh but think
> > > I had it  
> >
> > emerge -c will remove packages that are in @world. It was probably
> > also a dependency of something else when you tried before.
> >
> Hmmm... This  would seem to contradict the man page. 

From man emerge

       --depclean, -c 
       Cleans the system by removing packages that are not
       associated with explicitly merged packages. Depclean works by
       creating the full dependency tree from the @world set, then
       comparing  it to installed packages. Packages installed, but not
       part of the dependency tree, will be uninstalled by depclean.

It is a little ambiguous in that does the dependency tree from the world
set include the world set itself?

> How would emerge -c  
> decide which packages in the world file were unwanted? Maybe you're
> thinking of slotted packages?

No, just tried it. Pick a file from @world and emerge -cpv it.

[root@phoucgh ~ 0]% grep x11vnc /var/lib/portage/world
x11-misc/x11vnc
[root@phoucgh ~ 0]% emerge -cpv x11vnc

Calculating dependencies... done!
>>> Calculating removal order...

>>> These are the packages that would be unmerged:

 x11-misc/x11vnc
    selected: 0.9.16-r8 
   protected: none 
     omitted: none 

All selected packages: =x11-misc/x11vnc-0.9.16-r8

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

Packages installed:   2083
Packages in world:    350
Packages in system:   49
Required packages:    2082
Number to remove:     1

Files in @world should only be wanted because you put them in there, so
you should be able to remove them.


-- 
Neil Bothwick

"What I need is a list of specific unknown problems we will encounter."

Attachment: pgpJ1zRxuqJO9.pgp
Description: OpenPGP digital signature

Reply via email to