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.
apt
add a comment |
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.
apt
You needsudo
to run mostapt
commands unless you are making the mistake of logging in as root. Could you edit your question and add some specificapt
commands that you have tried?
– terdon♦
Apr 2 '16 at 13:45
add a comment |
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.
apt
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
apt
edited Nov 24 at 20:14
Rui F Ribeiro
38.3k1475126
38.3k1475126
asked Apr 2 '16 at 13:31
user163963
You needsudo
to run mostapt
commands unless you are making the mistake of logging in as root. Could you edit your question and add some specificapt
commands that you have tried?
– terdon♦
Apr 2 '16 at 13:45
add a comment |
You needsudo
to run mostapt
commands unless you are making the mistake of logging in as root. Could you edit your question and add some specificapt
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
add a comment |
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
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
|
show 5 more comments
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
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
|
show 5 more comments
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
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
|
show 5 more comments
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
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
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
|
show 5 more comments
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
|
show 5 more comments
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%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
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
You need
sudo
to run mostapt
commands unless you are making the mistake of logging in as root. Could you edit your question and add some specificapt
commands that you have tried?– terdon♦
Apr 2 '16 at 13:45