Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Algorithm For Uninstalling Dependencies

by NiJo (Friar)
on Nov 20, 2009 at 21:03 UTC ( [id://808527]=note: print w/replies, xml ) Need Help??


in reply to Algorithm For Uninstalling Dependencies

The problem benind the question sounds like Limbic~Region's coworker is trying to write yet another package manager, e. g. for Linux distributions. The source code of e. g. apt (Debian, in C++) or portage (Gentoo, in Python) might provide further insight.

Beeing lazy in programming, I'd try creative use of 'make': After transferring the dependencies into a Makefile, 'make -t' creates the dependeny tree in an empty directory as 0 byte files. After 'touch'ing the file to be removed, 'make -n' provides a suitable action plan that just needs reversing.

  • Comment on Re: Algorithm For Uninstalling Dependencies

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://808527]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-24 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found