Jump to content
funtoo forums
  • 0
aramisqc

How to exclude packages from emerge --depclean

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.

Share this post


Link to post
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 :)

 

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...