Change the default program installation location?
I have learn linux recently, but i confused about how linux system works, especially about how linux handle program files, in windows all program is in one directory Programfiles (and some in Windows) but in linux, when i install program automaticly (apt) i think its "randomly" place the program files not in one place (not just programfiles folder).
Can i change DEFAULT place/folder of program in linux? I have linux mint 17.3 64 bit.
software-installation directory-structure
add a comment |
I have learn linux recently, but i confused about how linux system works, especially about how linux handle program files, in windows all program is in one directory Programfiles (and some in Windows) but in linux, when i install program automaticly (apt) i think its "randomly" place the program files not in one place (not just programfiles folder).
Can i change DEFAULT place/folder of program in linux? I have linux mint 17.3 64 bit.
software-installation directory-structure
See also Where should an application be installed if it consists of multiple files?
– Gilles
Feb 20 '16 at 20:41
add a comment |
I have learn linux recently, but i confused about how linux system works, especially about how linux handle program files, in windows all program is in one directory Programfiles (and some in Windows) but in linux, when i install program automaticly (apt) i think its "randomly" place the program files not in one place (not just programfiles folder).
Can i change DEFAULT place/folder of program in linux? I have linux mint 17.3 64 bit.
software-installation directory-structure
I have learn linux recently, but i confused about how linux system works, especially about how linux handle program files, in windows all program is in one directory Programfiles (and some in Windows) but in linux, when i install program automaticly (apt) i think its "randomly" place the program files not in one place (not just programfiles folder).
Can i change DEFAULT place/folder of program in linux? I have linux mint 17.3 64 bit.
software-installation directory-structure
software-installation directory-structure
edited Dec 16 at 11:49
Rui F Ribeiro
38.9k1479129
38.9k1479129
asked Feb 20 '16 at 16:04
Ardi Renaldi
465
465
See also Where should an application be installed if it consists of multiple files?
– Gilles
Feb 20 '16 at 20:41
add a comment |
See also Where should an application be installed if it consists of multiple files?
– Gilles
Feb 20 '16 at 20:41
See also Where should an application be installed if it consists of multiple files?
– Gilles
Feb 20 '16 at 20:41
See also Where should an application be installed if it consists of multiple files?
– Gilles
Feb 20 '16 at 20:41
add a comment |
2 Answers
2
active
oldest
votes
In short: As long as you use the package manager that comes with your Linux distribution, you can't change the place where the binaries are installed. However, the installation paths follow a long-established convention (with minor differences between distributions).
If you build packages on your own you could, in theory, choose the installation prefix yourself, but usually departing from the conventions comes with some kind of penalty (read: It's a bad idea if you don't know exactly what you're doing).
add a comment |
Generally not: most programs on Linux are packages, which could be relocatable. However few are setup to allow relocation. In particular, systems (such as Mint) derived from Debian do not provide relocatable packages. RPM-based systems may include some relocatable packages.
Further reading:
- Relocatable Debian packages (like rpm prefix)
- Run time installation directory of debian package contents
- creating relocatable packages with dpkg
add a comment |
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
});
}
});
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%2funix.stackexchange.com%2fquestions%2f264581%2fchange-the-default-program-installation-location%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
In short: As long as you use the package manager that comes with your Linux distribution, you can't change the place where the binaries are installed. However, the installation paths follow a long-established convention (with minor differences between distributions).
If you build packages on your own you could, in theory, choose the installation prefix yourself, but usually departing from the conventions comes with some kind of penalty (read: It's a bad idea if you don't know exactly what you're doing).
add a comment |
In short: As long as you use the package manager that comes with your Linux distribution, you can't change the place where the binaries are installed. However, the installation paths follow a long-established convention (with minor differences between distributions).
If you build packages on your own you could, in theory, choose the installation prefix yourself, but usually departing from the conventions comes with some kind of penalty (read: It's a bad idea if you don't know exactly what you're doing).
add a comment |
In short: As long as you use the package manager that comes with your Linux distribution, you can't change the place where the binaries are installed. However, the installation paths follow a long-established convention (with minor differences between distributions).
If you build packages on your own you could, in theory, choose the installation prefix yourself, but usually departing from the conventions comes with some kind of penalty (read: It's a bad idea if you don't know exactly what you're doing).
In short: As long as you use the package manager that comes with your Linux distribution, you can't change the place where the binaries are installed. However, the installation paths follow a long-established convention (with minor differences between distributions).
If you build packages on your own you could, in theory, choose the installation prefix yourself, but usually departing from the conventions comes with some kind of penalty (read: It's a bad idea if you don't know exactly what you're doing).
edited Feb 20 '16 at 16:20
answered Feb 20 '16 at 16:14
Murphy
1,7661517
1,7661517
add a comment |
add a comment |
Generally not: most programs on Linux are packages, which could be relocatable. However few are setup to allow relocation. In particular, systems (such as Mint) derived from Debian do not provide relocatable packages. RPM-based systems may include some relocatable packages.
Further reading:
- Relocatable Debian packages (like rpm prefix)
- Run time installation directory of debian package contents
- creating relocatable packages with dpkg
add a comment |
Generally not: most programs on Linux are packages, which could be relocatable. However few are setup to allow relocation. In particular, systems (such as Mint) derived from Debian do not provide relocatable packages. RPM-based systems may include some relocatable packages.
Further reading:
- Relocatable Debian packages (like rpm prefix)
- Run time installation directory of debian package contents
- creating relocatable packages with dpkg
add a comment |
Generally not: most programs on Linux are packages, which could be relocatable. However few are setup to allow relocation. In particular, systems (such as Mint) derived from Debian do not provide relocatable packages. RPM-based systems may include some relocatable packages.
Further reading:
- Relocatable Debian packages (like rpm prefix)
- Run time installation directory of debian package contents
- creating relocatable packages with dpkg
Generally not: most programs on Linux are packages, which could be relocatable. However few are setup to allow relocation. In particular, systems (such as Mint) derived from Debian do not provide relocatable packages. RPM-based systems may include some relocatable packages.
Further reading:
- Relocatable Debian packages (like rpm prefix)
- Run time installation directory of debian package contents
- creating relocatable packages with dpkg
edited May 23 '17 at 12:40
Community♦
1
1
answered Feb 20 '16 at 16:13
Thomas Dickey
52k594164
52k594164
add a comment |
add a comment |
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2funix.stackexchange.com%2fquestions%2f264581%2fchange-the-default-program-installation-location%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
See also Where should an application be installed if it consists of multiple files?
– Gilles
Feb 20 '16 at 20:41