How to apt install only on one user account?












1















I need to install a few packages on a server, but I need them to be available through only one user's account.



More specifically, I have a developer who will use those packages for testing some stuff before installing them system wide. I am running on Ubuntu 18.04. Is there any way to do it?










share|improve this question

























  • duplicate: Installing a package with apt-get for a single user, How do I install an application by DEB file for a single user only?

    – phuclv
    Jan 13 at 8:29
















1















I need to install a few packages on a server, but I need them to be available through only one user's account.



More specifically, I have a developer who will use those packages for testing some stuff before installing them system wide. I am running on Ubuntu 18.04. Is there any way to do it?










share|improve this question

























  • duplicate: Installing a package with apt-get for a single user, How do I install an application by DEB file for a single user only?

    – phuclv
    Jan 13 at 8:29














1












1








1








I need to install a few packages on a server, but I need them to be available through only one user's account.



More specifically, I have a developer who will use those packages for testing some stuff before installing them system wide. I am running on Ubuntu 18.04. Is there any way to do it?










share|improve this question
















I need to install a few packages on a server, but I need them to be available through only one user's account.



More specifically, I have a developer who will use those packages for testing some stuff before installing them system wide. I am running on Ubuntu 18.04. Is there any way to do it?







linux ubuntu






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 13 at 1:42









Scott

15.7k113890




15.7k113890










asked Jan 13 at 1:19









D. VargasD. Vargas

61




61













  • duplicate: Installing a package with apt-get for a single user, How do I install an application by DEB file for a single user only?

    – phuclv
    Jan 13 at 8:29



















  • duplicate: Installing a package with apt-get for a single user, How do I install an application by DEB file for a single user only?

    – phuclv
    Jan 13 at 8:29

















duplicate: Installing a package with apt-get for a single user, How do I install an application by DEB file for a single user only?

– phuclv
Jan 13 at 8:29





duplicate: Installing a package with apt-get for a single user, How do I install an application by DEB file for a single user only?

– phuclv
Jan 13 at 8:29










1 Answer
1






active

oldest

votes


















1














apt by definition installs everything system-wide.



You can download the .deb packages and install them with dpkg --root=... into some other tree, but then this tree will not be recognized by the system, and you'll have to manually fiddle with library configurations etc.



You can also create your own system tree using chroot, but again this is a lot of trouble, and you'll need to copy a good part of your installed system.



All of this is fairly involved. So the simplest way is "don't try to make it available to just one user". Instead, clone your complete server, run it in a VM etc., and have your developer test things this way. This has the additional advantage that he'll be testing with a setup identical to a production setup, so there'll be no surprises.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    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: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2fsuperuser.com%2fquestions%2f1393650%2fhow-to-apt-install-only-on-one-user-account%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









    1














    apt by definition installs everything system-wide.



    You can download the .deb packages and install them with dpkg --root=... into some other tree, but then this tree will not be recognized by the system, and you'll have to manually fiddle with library configurations etc.



    You can also create your own system tree using chroot, but again this is a lot of trouble, and you'll need to copy a good part of your installed system.



    All of this is fairly involved. So the simplest way is "don't try to make it available to just one user". Instead, clone your complete server, run it in a VM etc., and have your developer test things this way. This has the additional advantage that he'll be testing with a setup identical to a production setup, so there'll be no surprises.






    share|improve this answer




























      1














      apt by definition installs everything system-wide.



      You can download the .deb packages and install them with dpkg --root=... into some other tree, but then this tree will not be recognized by the system, and you'll have to manually fiddle with library configurations etc.



      You can also create your own system tree using chroot, but again this is a lot of trouble, and you'll need to copy a good part of your installed system.



      All of this is fairly involved. So the simplest way is "don't try to make it available to just one user". Instead, clone your complete server, run it in a VM etc., and have your developer test things this way. This has the additional advantage that he'll be testing with a setup identical to a production setup, so there'll be no surprises.






      share|improve this answer


























        1












        1








        1







        apt by definition installs everything system-wide.



        You can download the .deb packages and install them with dpkg --root=... into some other tree, but then this tree will not be recognized by the system, and you'll have to manually fiddle with library configurations etc.



        You can also create your own system tree using chroot, but again this is a lot of trouble, and you'll need to copy a good part of your installed system.



        All of this is fairly involved. So the simplest way is "don't try to make it available to just one user". Instead, clone your complete server, run it in a VM etc., and have your developer test things this way. This has the additional advantage that he'll be testing with a setup identical to a production setup, so there'll be no surprises.






        share|improve this answer













        apt by definition installs everything system-wide.



        You can download the .deb packages and install them with dpkg --root=... into some other tree, but then this tree will not be recognized by the system, and you'll have to manually fiddle with library configurations etc.



        You can also create your own system tree using chroot, but again this is a lot of trouble, and you'll need to copy a good part of your installed system.



        All of this is fairly involved. So the simplest way is "don't try to make it available to just one user". Instead, clone your complete server, run it in a VM etc., and have your developer test things this way. This has the additional advantage that he'll be testing with a setup identical to a production setup, so there'll be no surprises.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 13 at 8:26









        dirktdirkt

        9,22731221




        9,22731221






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • 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%2fsuperuser.com%2fquestions%2f1393650%2fhow-to-apt-install-only-on-one-user-account%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

            How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

            is 'sed' thread safe

            How to make a Squid Proxy server?