Should I Be Afraid to run "emerge --depclean" ?
Hello Gentoo forum,
I am somewhat familiar with Gentoo and Portage and I have never used the command "emerge --depclean" before, until yesterday, just to see if it would clean up my system. But after seeing what it wanted to do using the pretend parameter, I chickened out. It wanted to unmerge a package that was critical to my system profile (nano) and gave me a big fat warning regarding that, plus unmerge 70 other packages. Below is the terminal printout of what it wanted to do. As you can see, it wanted to remove 70 packages of which (apparently) are not recorded in the world dependency tree. I can't understand why those 70 packages are not recorded in the world dependency tree because I installed them normally using "emerge (package name)" and I doubt all of those packages are orphaned and none of the packages are installed outside of portage, and I have a standard desktop installation of Gentoo and Gnome. Before I ran the command, I did like the man pages suggested and ran "emerge --update--newuse --deep world" Was I right for chickening out? Is this normal behavour? Or did I do something wrong? Thanks for any suggestions. Sincerely, Roy Code:
>>> These are the packages that would be unmerged: |
Have you installed gentoolkit? :doh:
You probably want to use "emerge --update --newuse --deep @world" BEFORE running "emerge --depclean" :tisk: Come on, read what portage spits out, like: * Depclean may break link level dependencies. Thus, it is * recommended to use a tool such as `revdep-rebuild` (from * app-portage/gentoolkit) in order to detect such breakage. * * 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. |
Hello GentooLinuxIsBetter,
I did indeed run "emerge --update--newuse --deep world" as mentioned in my post before running "emerge --depclean" as shown below in the quote: Quote:
I do not plan to pursue this matter further until I can make more sense out of it. Thank you for your reply. By the way, I totally agree that Gentoo Linux Is Better. Regards, Roy |
You should clean up your system. Use
Code:
eselect editor list |
Thanks for the reply Emerson,
I ran "emerge --depclean" again (a month later) and this time it only wanted to unmerge 30 packages instead of 70 packages and the only thing I could have done to cause that was to reboot my computer. And keep in mind I had already ran the command "emerge --update--newuse --deep world". I ran "eselect editor set 1" to make nano my default editor but it was still slated for removal when I ran "emerge --depclean". I used the command "emerge --noreplace nano" as suggested, but nano was still slated for removal when I ran "emerge --depclean". But when I used the command "emerge nano" (without --noreplace) to simply re-install nano, it then was NOT slated for removal when I ran "emerge --depclean". In other words, I had to reinstall nano for it to not be slated for removal by "emerge --depclean", because re-emerging nano put it in the world set. For some reason, nano was not in the world set before. I am still reluctant to run "emerge --depclean" because there may be other packages that are essential for my system to run properly that might not be part of the world set, and slated for removal. Because the notes say that any package not part of the world set will be removed. Regards, Roy |
Quote:
Code:
emerge --update--newuse --deep world Code:
emerge --update --newuse --deep @world Kindest regards, . |
Never versions of portage support sets, @ indicates a set is used.
This will do a thorough upgrade. Code:
emerge -avuDt --changed-use --with-bdeps=y @world Code:
emerge @module-rebuild Code:
emerge @x11-module-rebuild |
All times are GMT -5. The time now is 03:34 PM. |