1

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.

1
  • 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, 2016 at 13:45

1 Answer 1

1

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
10
  • 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, 2016 at 13:40
  • You can be a primary user and have sudo installed.
    – aurelien
    Apr 2, 2016 at 13:42
  • sudo mean you have root power, but, you stay the user.
    – aurelien
    Apr 2, 2016 at 13:43
  • I mean, does it matter which one I use?
    – user163963
    Apr 2, 2016 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, 2016 at 13:44

You must log in to answer this question.