FreeBSD - delete a partially installed gnome2?












1















I've been trying to compile x11/gnome2 under FreeBSD 10.0-REL, but have been running into all sorts of issues. Eventually I found things indicating that gnome2 is no longer really supported, and that I should use something else (MATE, Xfce, KDE, whatever) instead.



But gnome2 installs a trillion other packages, none of which I actually want if I'm not going to be using Gnome. So "make install" of gnome2 has failed, but not before installing a few billion packages that I don't want. I'd like to get rid of them before starting an install of Xfce or whatever.



How can I easily delete those that aren't needed by anything that doesn't ultimately go back go the gnome2 package? So, in a perfect world I'd like a command that says:



"Figure out all packages that are supposed to be installed via gnome2 (including recursively). For each such package, if it is installed, uninstall it unless there is some installed package that needs it and that is not among those installed via gnome2 (including recursively)."



Is there an easy way to do this?



Thanks in advance.










share|improve this question
















bumped to the homepage by Community 9 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Alternatively, I currently have very few packages that I explicitly want installed (though many that I need because of those very few). Is there a way to say, for example, "deinstall anything that is not needed by apache24, subversion, or viewvc"?

    – Bob Vesterman
    Sep 29 '14 at 21:17
















1















I've been trying to compile x11/gnome2 under FreeBSD 10.0-REL, but have been running into all sorts of issues. Eventually I found things indicating that gnome2 is no longer really supported, and that I should use something else (MATE, Xfce, KDE, whatever) instead.



But gnome2 installs a trillion other packages, none of which I actually want if I'm not going to be using Gnome. So "make install" of gnome2 has failed, but not before installing a few billion packages that I don't want. I'd like to get rid of them before starting an install of Xfce or whatever.



How can I easily delete those that aren't needed by anything that doesn't ultimately go back go the gnome2 package? So, in a perfect world I'd like a command that says:



"Figure out all packages that are supposed to be installed via gnome2 (including recursively). For each such package, if it is installed, uninstall it unless there is some installed package that needs it and that is not among those installed via gnome2 (including recursively)."



Is there an easy way to do this?



Thanks in advance.










share|improve this question
















bumped to the homepage by Community 9 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Alternatively, I currently have very few packages that I explicitly want installed (though many that I need because of those very few). Is there a way to say, for example, "deinstall anything that is not needed by apache24, subversion, or viewvc"?

    – Bob Vesterman
    Sep 29 '14 at 21:17














1












1








1








I've been trying to compile x11/gnome2 under FreeBSD 10.0-REL, but have been running into all sorts of issues. Eventually I found things indicating that gnome2 is no longer really supported, and that I should use something else (MATE, Xfce, KDE, whatever) instead.



But gnome2 installs a trillion other packages, none of which I actually want if I'm not going to be using Gnome. So "make install" of gnome2 has failed, but not before installing a few billion packages that I don't want. I'd like to get rid of them before starting an install of Xfce or whatever.



How can I easily delete those that aren't needed by anything that doesn't ultimately go back go the gnome2 package? So, in a perfect world I'd like a command that says:



"Figure out all packages that are supposed to be installed via gnome2 (including recursively). For each such package, if it is installed, uninstall it unless there is some installed package that needs it and that is not among those installed via gnome2 (including recursively)."



Is there an easy way to do this?



Thanks in advance.










share|improve this question
















I've been trying to compile x11/gnome2 under FreeBSD 10.0-REL, but have been running into all sorts of issues. Eventually I found things indicating that gnome2 is no longer really supported, and that I should use something else (MATE, Xfce, KDE, whatever) instead.



But gnome2 installs a trillion other packages, none of which I actually want if I'm not going to be using Gnome. So "make install" of gnome2 has failed, but not before installing a few billion packages that I don't want. I'd like to get rid of them before starting an install of Xfce or whatever.



How can I easily delete those that aren't needed by anything that doesn't ultimately go back go the gnome2 package? So, in a perfect world I'd like a command that says:



"Figure out all packages that are supposed to be installed via gnome2 (including recursively). For each such package, if it is installed, uninstall it unless there is some installed package that needs it and that is not among those installed via gnome2 (including recursively)."



Is there an easy way to do this?



Thanks in advance.







package-management freebsd bsd-ports uninstall gnome2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 31 '15 at 23:37









Jeff Schaller

41.7k1156133




41.7k1156133










asked Sep 29 '14 at 21:12









Bob VestermanBob Vesterman

15810




15810





bumped to the homepage by Community 9 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 9 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Alternatively, I currently have very few packages that I explicitly want installed (though many that I need because of those very few). Is there a way to say, for example, "deinstall anything that is not needed by apache24, subversion, or viewvc"?

    – Bob Vesterman
    Sep 29 '14 at 21:17



















  • Alternatively, I currently have very few packages that I explicitly want installed (though many that I need because of those very few). Is there a way to say, for example, "deinstall anything that is not needed by apache24, subversion, or viewvc"?

    – Bob Vesterman
    Sep 29 '14 at 21:17

















Alternatively, I currently have very few packages that I explicitly want installed (though many that I need because of those very few). Is there a way to say, for example, "deinstall anything that is not needed by apache24, subversion, or viewvc"?

– Bob Vesterman
Sep 29 '14 at 21:17





Alternatively, I currently have very few packages that I explicitly want installed (though many that I need because of those very few). Is there a way to say, for example, "deinstall anything that is not needed by apache24, subversion, or viewvc"?

– Bob Vesterman
Sep 29 '14 at 21:17










1 Answer
1






active

oldest

votes


















0














FreeBSD 10 comes with pkg utility that allows you to do exactly that:



pkg autoremove


See pkg help for the full list of pkg commands.



You probably will need to clean the port after failed build as well.

You can do it this way:



cd /usr/ports/x11/gnome2
make clean


About your second question: yes, there is a way. You should delete packages that require these dependencies and then execute pkg autoremove, it will do the rest.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f158299%2ffreebsd-delete-a-partially-installed-gnome2%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    FreeBSD 10 comes with pkg utility that allows you to do exactly that:



    pkg autoremove


    See pkg help for the full list of pkg commands.



    You probably will need to clean the port after failed build as well.

    You can do it this way:



    cd /usr/ports/x11/gnome2
    make clean


    About your second question: yes, there is a way. You should delete packages that require these dependencies and then execute pkg autoremove, it will do the rest.






    share|improve this answer




























      0














      FreeBSD 10 comes with pkg utility that allows you to do exactly that:



      pkg autoremove


      See pkg help for the full list of pkg commands.



      You probably will need to clean the port after failed build as well.

      You can do it this way:



      cd /usr/ports/x11/gnome2
      make clean


      About your second question: yes, there is a way. You should delete packages that require these dependencies and then execute pkg autoremove, it will do the rest.






      share|improve this answer


























        0












        0








        0







        FreeBSD 10 comes with pkg utility that allows you to do exactly that:



        pkg autoremove


        See pkg help for the full list of pkg commands.



        You probably will need to clean the port after failed build as well.

        You can do it this way:



        cd /usr/ports/x11/gnome2
        make clean


        About your second question: yes, there is a way. You should delete packages that require these dependencies and then execute pkg autoremove, it will do the rest.






        share|improve this answer













        FreeBSD 10 comes with pkg utility that allows you to do exactly that:



        pkg autoremove


        See pkg help for the full list of pkg commands.



        You probably will need to clean the port after failed build as well.

        You can do it this way:



        cd /usr/ports/x11/gnome2
        make clean


        About your second question: yes, there is a way. You should delete packages that require these dependencies and then execute pkg autoremove, it will do the rest.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 22 '14 at 22:36







        user88850





































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f158299%2ffreebsd-delete-a-partially-installed-gnome2%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            サソリ

            広島県道265号伴広島線

            Accessing regular linux commands in Huawei's Dopra Linux