On Jun 27, 2007, at 12:05 PM, didier deshommes wrote:
> On 6/22/07, William Stein <[EMAIL PROTECTED]> wrote: >> Could you say something about the fact that currently there is no way >> to uninstall >> a SAGE package, since we don't track what files are actually >> installed. That said, >> we definitely *could* implement something simple that stores a >> list of >> all files installed >> in the install certificate in the spkg/installed directory. I'm >> thinking of something like >> computing a list of all files before then after the install, hence >> getting a list of what >> was installed (plus a list of files overwritten). Anyway, I'm just >> randomly throwing this >> out for comment. Maybe people who do gentoo/rpm/deb's can make a >> more >> intelligent comment. For SAGE uninstall isn't a big deal, >> since essentially >> nobody ever wants to uninstall a package. > > It's mostly painless to remove a package if: > -- you know where all its files are. Most of them are in > SAGE_ROOT/local/include/ and SAGE_ROOT/local/lib/ . It's pretty to > figure out what goes where from the spkg-install script. > -- you know that SAGE won't be using the functionality provided by > this package itself. It would be really cool if by removing maxima for > example, the uninstall script also figured out that that > SAGE_ROOT/devel/sage-main/sage/calculus/*.py would also have to be > removed. Really cool, but probably a bit overkill > -- you remove the file with its name located in SAGE_ROOT/spkg/ > installed/ I think this works *only* if each package provides unique copies of things like libraries . For example, if a package uses libfac or libsing, and you remove the singular package, you pull the rug out from under the former. One reason package management is so difficult is this problem: you have to do reference counting on each file that SAGE uses. Computer history is littered with the corpses of packaging systems. :-} Justin -- Justin C. Walker, Curmudgeon-At-Large, Director Institute for the Enhancement of the Director's Income -------- The path of least resistance: it's not just for electricity any more. -------- --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---