Difference between apt command and sudo apt command in Linux Mint terminal?











up vote
1
down vote

favorite












I was wondering what the difference was between the two because both of them seem to work when doing stuff. Command is a placeholder name for upgrade, update or install or whatever.



Does it matter which one I use?



I am running Linux Mint 17.3.










share|improve this question
























  • You need sudo to run most apt commands unless you are making the mistake of logging in as root. Could you edit your question and add some specific apt commands that you have tried?
    – terdon
    Apr 2 '16 at 13:45















up vote
1
down vote

favorite












I was wondering what the difference was between the two because both of them seem to work when doing stuff. Command is a placeholder name for upgrade, update or install or whatever.



Does it matter which one I use?



I am running Linux Mint 17.3.










share|improve this question
























  • You need sudo to run most apt commands unless you are making the mistake of logging in as root. Could you edit your question and add some specific apt commands that you have tried?
    – terdon
    Apr 2 '16 at 13:45













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I was wondering what the difference was between the two because both of them seem to work when doing stuff. Command is a placeholder name for upgrade, update or install or whatever.



Does it matter which one I use?



I am running Linux Mint 17.3.










share|improve this question















I was wondering what the difference was between the two because both of them seem to work when doing stuff. Command is a placeholder name for upgrade, update or install or whatever.



Does it matter which one I use?



I am running Linux Mint 17.3.







apt






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 24 at 20:14









Rui F Ribeiro

38.3k1475126




38.3k1475126










asked Apr 2 '16 at 13:31







user163963



















  • You need sudo to run most apt commands unless you are making the mistake of logging in as root. Could you edit your question and add some specific apt commands that you have tried?
    – terdon
    Apr 2 '16 at 13:45


















  • You need sudo to run most apt commands unless you are making the mistake of logging in as root. Could you edit your question and add some specific apt commands that you have tried?
    – terdon
    Apr 2 '16 at 13:45
















You need sudo to run most apt commands unless you are making the mistake of logging in as root. Could you edit your question and add some specific apt commands that you have tried?
– terdon
Apr 2 '16 at 13:45




You need sudo to run most apt commands unless you are making the mistake of logging in as root. Could you edit your question and add some specific apt commands that you have tried?
– terdon
Apr 2 '16 at 13:45










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










apt is a package manager for debian branch.
You cannot install package without behind root (su) or having that powers (sudo)
But, you can search for example apt-cache search <package> without being root.
To install you must be root (su) or have its power



sudo apt-get install <packages-name>


To understand how apt works



man apt





share|improve this answer





















  • So if I was a secondary user I would have to use sudo? Is that what you mean? I am the owner and I can use either, I just have to put in the password each time I re-open the terminal.
    – user163963
    Apr 2 '16 at 13:40












  • You can be a primary user and have sudo installed.
    – aurelien
    Apr 2 '16 at 13:42










  • sudo mean you have root power, but, you stay the user.
    – aurelien
    Apr 2 '16 at 13:43










  • I mean, does it matter which one I use?
    – user163963
    Apr 2 '16 at 13:43










  • 'cd' command will bring you to your user directory /home/you rather than if you where # root that would bring you to the /root/ directory
    – aurelien
    Apr 2 '16 at 13:44











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: 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%2f273847%2fdifference-between-apt-command-and-sudo-apt-command-in-linux-mint-terminal%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








up vote
1
down vote



accepted










apt is a package manager for debian branch.
You cannot install package without behind root (su) or having that powers (sudo)
But, you can search for example apt-cache search <package> without being root.
To install you must be root (su) or have its power



sudo apt-get install <packages-name>


To understand how apt works



man apt





share|improve this answer





















  • So if I was a secondary user I would have to use sudo? Is that what you mean? I am the owner and I can use either, I just have to put in the password each time I re-open the terminal.
    – user163963
    Apr 2 '16 at 13:40












  • You can be a primary user and have sudo installed.
    – aurelien
    Apr 2 '16 at 13:42










  • sudo mean you have root power, but, you stay the user.
    – aurelien
    Apr 2 '16 at 13:43










  • I mean, does it matter which one I use?
    – user163963
    Apr 2 '16 at 13:43










  • 'cd' command will bring you to your user directory /home/you rather than if you where # root that would bring you to the /root/ directory
    – aurelien
    Apr 2 '16 at 13:44















up vote
1
down vote



accepted










apt is a package manager for debian branch.
You cannot install package without behind root (su) or having that powers (sudo)
But, you can search for example apt-cache search <package> without being root.
To install you must be root (su) or have its power



sudo apt-get install <packages-name>


To understand how apt works



man apt





share|improve this answer





















  • So if I was a secondary user I would have to use sudo? Is that what you mean? I am the owner and I can use either, I just have to put in the password each time I re-open the terminal.
    – user163963
    Apr 2 '16 at 13:40












  • You can be a primary user and have sudo installed.
    – aurelien
    Apr 2 '16 at 13:42










  • sudo mean you have root power, but, you stay the user.
    – aurelien
    Apr 2 '16 at 13:43










  • I mean, does it matter which one I use?
    – user163963
    Apr 2 '16 at 13:43










  • 'cd' command will bring you to your user directory /home/you rather than if you where # root that would bring you to the /root/ directory
    – aurelien
    Apr 2 '16 at 13:44













up vote
1
down vote



accepted







up vote
1
down vote



accepted






apt is a package manager for debian branch.
You cannot install package without behind root (su) or having that powers (sudo)
But, you can search for example apt-cache search <package> without being root.
To install you must be root (su) or have its power



sudo apt-get install <packages-name>


To understand how apt works



man apt





share|improve this answer












apt is a package manager for debian branch.
You cannot install package without behind root (su) or having that powers (sudo)
But, you can search for example apt-cache search <package> without being root.
To install you must be root (su) or have its power



sudo apt-get install <packages-name>


To understand how apt works



man apt






share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 2 '16 at 13:37









aurelien

542418




542418












  • So if I was a secondary user I would have to use sudo? Is that what you mean? I am the owner and I can use either, I just have to put in the password each time I re-open the terminal.
    – user163963
    Apr 2 '16 at 13:40












  • You can be a primary user and have sudo installed.
    – aurelien
    Apr 2 '16 at 13:42










  • sudo mean you have root power, but, you stay the user.
    – aurelien
    Apr 2 '16 at 13:43










  • I mean, does it matter which one I use?
    – user163963
    Apr 2 '16 at 13:43










  • 'cd' command will bring you to your user directory /home/you rather than if you where # root that would bring you to the /root/ directory
    – aurelien
    Apr 2 '16 at 13:44


















  • So if I was a secondary user I would have to use sudo? Is that what you mean? I am the owner and I can use either, I just have to put in the password each time I re-open the terminal.
    – user163963
    Apr 2 '16 at 13:40












  • You can be a primary user and have sudo installed.
    – aurelien
    Apr 2 '16 at 13:42










  • sudo mean you have root power, but, you stay the user.
    – aurelien
    Apr 2 '16 at 13:43










  • I mean, does it matter which one I use?
    – user163963
    Apr 2 '16 at 13:43










  • 'cd' command will bring you to your user directory /home/you rather than if you where # root that would bring you to the /root/ directory
    – aurelien
    Apr 2 '16 at 13:44
















So if I was a secondary user I would have to use sudo? Is that what you mean? I am the owner and I can use either, I just have to put in the password each time I re-open the terminal.
– user163963
Apr 2 '16 at 13:40






So if I was a secondary user I would have to use sudo? Is that what you mean? I am the owner and I can use either, I just have to put in the password each time I re-open the terminal.
– user163963
Apr 2 '16 at 13:40














You can be a primary user and have sudo installed.
– aurelien
Apr 2 '16 at 13:42




You can be a primary user and have sudo installed.
– aurelien
Apr 2 '16 at 13:42












sudo mean you have root power, but, you stay the user.
– aurelien
Apr 2 '16 at 13:43




sudo mean you have root power, but, you stay the user.
– aurelien
Apr 2 '16 at 13:43












I mean, does it matter which one I use?
– user163963
Apr 2 '16 at 13:43




I mean, does it matter which one I use?
– user163963
Apr 2 '16 at 13:43












'cd' command will bring you to your user directory /home/you rather than if you where # root that would bring you to the /root/ directory
– aurelien
Apr 2 '16 at 13:44




'cd' command will bring you to your user directory /home/you rather than if you where # root that would bring you to the /root/ directory
– aurelien
Apr 2 '16 at 13:44


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f273847%2fdifference-between-apt-command-and-sudo-apt-command-in-linux-mint-terminal%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