Jump to content
Forums in Read-Only Mode - Please use Reddit ×
  • 0

How to exclude packages from emerge --depclean


aramisqc

Question

Because current kernel is member of kernel set, emerge --depclean wants to remove package. That means kernel will be purged along with all its files (/boot, /usr/src/linux, etc...).

 

Is there a way to exclude package from emerge --depclean process ? I think that by deleting kernel set and by adding package to world set, will fix it but still searching for an alternative.

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Good Night (1.55 in my town) Mr aramisqc;

You're using "stable" or current ? and what tipe of kernel you use ?

 

For example I'm on stable 64 and  if aI make ermerge -c (that is equal to emerge --depclean), I obtain:

sandro@ci74771ht ~ $ emerge -cp
 
 * Always study the list of packages to be cleaned for any obvious
 * mistakes. Packages that are part of the world set will always
 * be kept.  They can be manually added to this set with
 * `emerge --noreplace <atom>`.  Packages that are listed in
 * package.provided (see portage(5)) will be removed by
 * depclean, even if they are part of the world set.
 * 
 * As a safety measure, depclean will not remove any packages
 * unless *all* required dependencies have been resolved.  As a
 * consequence, it is often necessary to run `emerge --update
 * --newuse --deep @world` prior to depclean.
 
Calculating dependencies... done!
>>> No packages selected for removal by depclean
>>> To see reverse dependencies, use --verbose
Packages installed:   1610
Packages in world:    101
Packages in system:   74
Required packages:    1610
Number to remove:     0
sandro@ci74771ht ~ $ 

And :


sandro@ci74771ht ~ $ du -hs /usr/src/linux-3.17.7-gentoo/
1,4G  
 

sandro@ci74771ht ~ $ du -hs /lib/modules/3.17.7-gentoo/ 75M

 
And May You send Your 
 
# eselect profile list ?
 
Thanx :)

 

Link to comment
Share on other sites

  • 0

Because current kernel is member of kernel set, emerge --depclean wants to remove package. That means kernel will be purged along with all its files (/boot, /usr/src/linux, etc...).

 

Is there a way to exclude package from emerge --depclean process ? I think that by deleting kernel set and by adding package to world set, will fix it but still searching for an alternative.

by --exclude

--exclude A or --exclude 'A B C' for several packages

Link to comment
Share on other sites

  • 0

 

Good Night (1.55 in my town) Mr aramisqc;

You're using "stable" or current ? and what tipe of kernel you use ?

 

For example I'm on stable 64 and  if aI make ermerge -c (that is equal to emerge --depclean), I obtain:

sandro@ci74771ht ~ $ emerge -cp
 
 * Always study the list of packages to be cleaned for any obvious
 * mistakes. Packages that are part of the world set will always
 * be kept.  They can be manually added to this set with
 * `emerge --noreplace <atom>`.  Packages that are listed in
 * package.provided (see portage(5)) will be removed by
 * depclean, even if they are part of the world set.
 * 
 * As a safety measure, depclean will not remove any packages
 * unless *all* required dependencies have been resolved.  As a
 * consequence, it is often necessary to run `emerge --update
 * --newuse --deep @world` prior to depclean.
 
Calculating dependencies... done!
>>> No packages selected for removal by depclean
>>> To see reverse dependencies, use --verbose
Packages installed:   1610
Packages in world:    101
Packages in system:   74
Required packages:    1610
Number to remove:     0
sandro@ci74771ht ~ $ 

And :

sandro@ci74771ht ~ $ du -hs /usr/src/linux-3.17.7-gentoo/
1,4G  
 

sandro@ci74771ht ~ $ du -hs /lib/modules/3.17.7-gentoo/ 75M

 
And May You send Your 
 
# eselect profile list ?
 
Thanx :)

 

This is the normal behavior of --depclean. That is why I want to exclude some packages from this process. All that is in @world won't be affected by --depclean.

Link to comment
Share on other sites

×
×
  • Create New...