How to remove a package I compiled and installed manually?

220

make uninstall often works. If your makefile doesn't support that, then your best bet might be to run make -n install (which will list the steps that make install does without actually doing them) and manually reverse its steps.

You can also look at different distros' Git packages (such as Debian's) to see what files those packages install. You might have to adjust the paths a bit for an install from source, but it should give you a pretty good idea of what files need to be deleted. (Debian, for example, splits Git between several packages, so you might need to check the file lists for each.)

Share:
220
Ionut Flavius Pogacian
Author by

Ionut Flavius Pogacian

Updated on September 17, 2022

Comments

  • Ionut Flavius Pogacian
    Ionut Flavius Pogacian almost 2 years

    I need to insert many nodes, and each new node should be added as the new firstChild node of the parrent;

    I managed to add nodes, but at the end of the list:

    var tr = document.createElement("tr");
                                tr.id = 'id' + data.id;
                                var content = '';
                                content += '<td>' + data.id + '</td><td>' + data.status + '</td>';
                                tr.innerHTML = content;
    
                                var tbody = document.getElementById('table_body_content').appendChild(tr);
    

    the structure of my table is:

    <table id="monitor_robot" style="border:1px solid #eeeeee;">
        <thead>
            <tr>
                <td>ID</td>
                <td>STATUS</td>
            </tr>
        </thead>
        <tbody id="table_body_content">
        </tbody>
    </table>
    
    • Julian
      Julian almost 14 years
      Have you tried make uninstall? Some makefiles support that.
    • macek
      macek almost 14 years
      make: *** No rule to make target uninstall'. Stop.` :(
  • David Spillett
    David Spillett over 13 years
    Good answer. It is also worth checking the documentation to see if there is anything like a (semi-)official separate uninstall script or recipe (a common wiki/FAQ entry for well documented OSS projects is "how do I remove it", often linked from any articles on upgrading/moving an install if you can't find it directly) if there is no uninstall target in the makefile, before manually working back from make -n's output.
  • Fish Monitor
    Fish Monitor over 10 years
    Given so much output of make -n install for git, it is not applicable to manually reverse the installing steps.