Linked by Eugenia Loli on Sun 16th Dec 2007 00:04 UTC, submitted by obsethryl
Gentoo A relatively lengthy Q&A with Ciaran McCreesh about Paludis, the Portage alternative for Gentoo.
Thread beginning with comment 291246
To read all comments associated with this story, please click here.
"cleanse" for Portage/Paludis?
by da_Chicken on Sun 16th Dec 2007 10:57 UTC
da_Chicken
Member since:
2006-01-01

I have never used Gentoo but, instead, I've found Source Mage GNU/Linux to be a mighty fine source-based distro. SMGL uses a package manager called "Sorcery" and it has a nifty feature called "cleanse".

In SMGL you type "cleanse" and then it runs several checks on your system -- I recall someone describing "cleanse" as the "fsck for installed packages". ;-) It cleans the package caches and install logs and it checks that dependencies for all the installed packages are satisfied. Then it inspects all the installed packages for any missing or modified files/symlinks and it also checks that there aren't any needed libraries missing.
http://wiki.sourcemage.org/Cleanse

If "cleanse" finds any problems, the Sorcery package manager reinstalls the troublesome package(s) and then "cleanse" checks them again. Most of the time this fixes things but if the problem persists after the reinstall, then "cleanse" just tells that the package in question is "hopelessly broken".

So, my question to any Gentoo gurus out there is if this "cleanse" is specific to SMGL & Sorcery or if Portage or Paludis might have something similar?

Reply Score: 5

SANGEKi Member since:
2006-11-30

The closest thing is probably revdep-rebuild.
It checks if any packages are broken due to missing or changed libs.

emerge takes care of package dependencies pretty much automatically so you should not really need a separate tool to check if something is missing.
If you happen to uninstall a package that is needed by something else then revdep-rebuild would tell you and the next "emerge world" would pull that package in again as well.

That's what I can think of right now but there are probably different ways to do this.

EDIT: But I don't think there is anything that checks if the installed files are really still there, except for libs.

Edited 2007-12-16 12:51

Reply Parent Score: 1

timofonic Member since:
2006-01-26

And for Paludis users, reconcilio is the revdep-rebuild equivalent ;)

Reply Parent Score: 1

dylansmrjones Member since:
2005-10-02

To me it sounds like a combination of revdep-rebuild and emerge --pretend depclean (don't ever forget --pretend).

Reply Parent Score: 2