How to apt install only on one user account?
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
add a comment |
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
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
add a comment |
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
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
linux ubuntu
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Jan 13 at 8:26
dirktdirkt
9,22731221
9,22731221
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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