Is “install” a shortcut for cp + chown + chmod, or does it do more?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-1
down vote

favorite
1












I read man install, and it seems that it just copies files with ownership & mode. So, is install a shortcut for cp + chown + chmod, or does it do more, under the hood?







share|improve this question


















  • 2




    It does exactly what the man page says it does.
    – Ignacio Vazquez-Abrams
    Nov 4 '17 at 17:33










  • Given this, you almost certainly did not read man install or man install.
    – JdeBP
    Nov 4 '17 at 19:41










  • @JdeBP It is because I read man install that I was hesitating if there are benefits of using it vs. using cp chown chmod.
    – Basj
    Nov 4 '17 at 19:56















up vote
-1
down vote

favorite
1












I read man install, and it seems that it just copies files with ownership & mode. So, is install a shortcut for cp + chown + chmod, or does it do more, under the hood?







share|improve this question


















  • 2




    It does exactly what the man page says it does.
    – Ignacio Vazquez-Abrams
    Nov 4 '17 at 17:33










  • Given this, you almost certainly did not read man install or man install.
    – JdeBP
    Nov 4 '17 at 19:41










  • @JdeBP It is because I read man install that I was hesitating if there are benefits of using it vs. using cp chown chmod.
    – Basj
    Nov 4 '17 at 19:56













up vote
-1
down vote

favorite
1









up vote
-1
down vote

favorite
1






1





I read man install, and it seems that it just copies files with ownership & mode. So, is install a shortcut for cp + chown + chmod, or does it do more, under the hood?







share|improve this question














I read man install, and it seems that it just copies files with ownership & mode. So, is install a shortcut for cp + chown + chmod, or does it do more, under the hood?









share|improve this question













share|improve this question




share|improve this question








edited Nov 4 '17 at 17:41

























asked Nov 4 '17 at 17:26









Basj

6181731




6181731







  • 2




    It does exactly what the man page says it does.
    – Ignacio Vazquez-Abrams
    Nov 4 '17 at 17:33










  • Given this, you almost certainly did not read man install or man install.
    – JdeBP
    Nov 4 '17 at 19:41










  • @JdeBP It is because I read man install that I was hesitating if there are benefits of using it vs. using cp chown chmod.
    – Basj
    Nov 4 '17 at 19:56













  • 2




    It does exactly what the man page says it does.
    – Ignacio Vazquez-Abrams
    Nov 4 '17 at 17:33










  • Given this, you almost certainly did not read man install or man install.
    – JdeBP
    Nov 4 '17 at 19:41










  • @JdeBP It is because I read man install that I was hesitating if there are benefits of using it vs. using cp chown chmod.
    – Basj
    Nov 4 '17 at 19:56








2




2




It does exactly what the man page says it does.
– Ignacio Vazquez-Abrams
Nov 4 '17 at 17:33




It does exactly what the man page says it does.
– Ignacio Vazquez-Abrams
Nov 4 '17 at 17:33












Given this, you almost certainly did not read man install or man install.
– JdeBP
Nov 4 '17 at 19:41




Given this, you almost certainly did not read man install or man install.
– JdeBP
Nov 4 '17 at 19:41












@JdeBP It is because I read man install that I was hesitating if there are benefits of using it vs. using cp chown chmod.
– Basj
Nov 4 '17 at 19:56





@JdeBP It is because I read man install that I was hesitating if there are benefits of using it vs. using cp chown chmod.
– Basj
Nov 4 '17 at 19:56











1 Answer
1






active

oldest

votes

















up vote
1
down vote













Unless $ which install tells you that it is a shell built-in, install shouldn't be some sort of wrapper to cp + chown + chmod.



The man page reveals that GNU install has a few extra options, like -s, which strips symbol tables to save space. I'm not sure that this can easily be achieved with cp + chown + chmod, as this doesn't seem to be mentioned on any of their man pages.






share|improve this answer
















  • 1




    To replicate -s you need to run strip, it’s not something cp/chown/chmod can do.
    – Stephen Kitt
    Nov 4 '17 at 18:23






  • 1




    There are a lot more differences than even that. Don't forget the -d option, and its subtle difference to mkdir -p. Then with BSD install there are atomic copying, all of the mtree-related functionality, and the various link-instead-of-copy modes.
    – JdeBP
    Nov 4 '17 at 19:25










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',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
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%2f402534%2fis-install-a-shortcut-for-cp-chown-chmod-or-does-it-do-more%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













Unless $ which install tells you that it is a shell built-in, install shouldn't be some sort of wrapper to cp + chown + chmod.



The man page reveals that GNU install has a few extra options, like -s, which strips symbol tables to save space. I'm not sure that this can easily be achieved with cp + chown + chmod, as this doesn't seem to be mentioned on any of their man pages.






share|improve this answer
















  • 1




    To replicate -s you need to run strip, it’s not something cp/chown/chmod can do.
    – Stephen Kitt
    Nov 4 '17 at 18:23






  • 1




    There are a lot more differences than even that. Don't forget the -d option, and its subtle difference to mkdir -p. Then with BSD install there are atomic copying, all of the mtree-related functionality, and the various link-instead-of-copy modes.
    – JdeBP
    Nov 4 '17 at 19:25














up vote
1
down vote













Unless $ which install tells you that it is a shell built-in, install shouldn't be some sort of wrapper to cp + chown + chmod.



The man page reveals that GNU install has a few extra options, like -s, which strips symbol tables to save space. I'm not sure that this can easily be achieved with cp + chown + chmod, as this doesn't seem to be mentioned on any of their man pages.






share|improve this answer
















  • 1




    To replicate -s you need to run strip, it’s not something cp/chown/chmod can do.
    – Stephen Kitt
    Nov 4 '17 at 18:23






  • 1




    There are a lot more differences than even that. Don't forget the -d option, and its subtle difference to mkdir -p. Then with BSD install there are atomic copying, all of the mtree-related functionality, and the various link-instead-of-copy modes.
    – JdeBP
    Nov 4 '17 at 19:25












up vote
1
down vote










up vote
1
down vote









Unless $ which install tells you that it is a shell built-in, install shouldn't be some sort of wrapper to cp + chown + chmod.



The man page reveals that GNU install has a few extra options, like -s, which strips symbol tables to save space. I'm not sure that this can easily be achieved with cp + chown + chmod, as this doesn't seem to be mentioned on any of their man pages.






share|improve this answer












Unless $ which install tells you that it is a shell built-in, install shouldn't be some sort of wrapper to cp + chown + chmod.



The man page reveals that GNU install has a few extra options, like -s, which strips symbol tables to save space. I'm not sure that this can easily be achieved with cp + chown + chmod, as this doesn't seem to be mentioned on any of their man pages.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 4 '17 at 17:55









Charles Diploma

666




666







  • 1




    To replicate -s you need to run strip, it’s not something cp/chown/chmod can do.
    – Stephen Kitt
    Nov 4 '17 at 18:23






  • 1




    There are a lot more differences than even that. Don't forget the -d option, and its subtle difference to mkdir -p. Then with BSD install there are atomic copying, all of the mtree-related functionality, and the various link-instead-of-copy modes.
    – JdeBP
    Nov 4 '17 at 19:25












  • 1




    To replicate -s you need to run strip, it’s not something cp/chown/chmod can do.
    – Stephen Kitt
    Nov 4 '17 at 18:23






  • 1




    There are a lot more differences than even that. Don't forget the -d option, and its subtle difference to mkdir -p. Then with BSD install there are atomic copying, all of the mtree-related functionality, and the various link-instead-of-copy modes.
    – JdeBP
    Nov 4 '17 at 19:25







1




1




To replicate -s you need to run strip, it’s not something cp/chown/chmod can do.
– Stephen Kitt
Nov 4 '17 at 18:23




To replicate -s you need to run strip, it’s not something cp/chown/chmod can do.
– Stephen Kitt
Nov 4 '17 at 18:23




1




1




There are a lot more differences than even that. Don't forget the -d option, and its subtle difference to mkdir -p. Then with BSD install there are atomic copying, all of the mtree-related functionality, and the various link-instead-of-copy modes.
– JdeBP
Nov 4 '17 at 19:25




There are a lot more differences than even that. Don't forget the -d option, and its subtle difference to mkdir -p. Then with BSD install there are atomic copying, all of the mtree-related functionality, and the various link-instead-of-copy modes.
– JdeBP
Nov 4 '17 at 19:25

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f402534%2fis-install-a-shortcut-for-cp-chown-chmod-or-does-it-do-more%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay